blob: aa32a5498657d1be98dceea15470f1cee6894714 [file] [log] [blame] [view]
Andrew Gerrand5bc444d2014-12-10 11:35:11 +11001# SQL database drivers
2
3The database/sql and database/sql/driver packages are designed for using databases from Go and implementing database drivers, respectively.
4
5See the design goals doc:
6
7> http://golang.org/src/pkg/database/sql/doc.txt
8
9# Drivers
10
11Drivers for Go's sql package include:
12
Aleksandr Sokolovskiif33f1e62018-04-23 22:56:47 +030013 * **Apache Ignite/GridGain**: https://github.com/amsokol/ignite-go-client
Francis Chuang55ad4932016-05-19 08:56:22 +100014 * **Apache Phoenix/Avatica**: https://github.com/Boostport/avatica
Alexey Palazhchenkoe9983152017-09-19 15:59:21 +030015 * **ClickHouse** (uses [native TCP interface](https://clickhouse.yandex/docs/en/interfaces/tcp.html)): https://github.com/kshvakov/clickhouse
16 * **ClickHouse** (uses [HTTP API](https://clickhouse.yandex/docs/en/interfaces/http_interface.html)): https://github.com/mailru/go-clickhouse
Manik Taneja6e353202016-01-14 23:33:16 +053017 * **Couchbase N1QL**: https://github.com/couchbase/go_n1ql
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080018 * **DB2**: https://bitbucket.org/phiggins/db2cli
Asif Jalilf0c238c2018-03-27 09:11:49 -040019 * **DB2 LUW**: https://github.com/asifjalil/cli
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080020 * **Firebird SQL**: https://github.com/nakagami/firebirdsql
21 * **MS ADODB**: https://github.com/mattn/go-adodb
22 * **MS SQL Server** (pure go): https://github.com/denisenkom/go-mssqldb
Igor Anić80c8bd82016-02-24 14:26:23 +010023 * **MS SQL Server** (uses cgo): https://github.com/minus5/gofreetds
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110024 * **MySQL**: https://github.com/ziutek/mymysql ` [*] `
25 * **MySQL**: https://github.com/go-sql-driver/mysql/ ` [*] `
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110026 * **ODBC**: https://bitbucket.org/miquella/mgodbc
Jeremy Echolse226e5d2015-07-01 12:42:50 -070027 * **ODBC**: https://github.com/alexbrainman/odbc
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110028 * **Oracle**: https://github.com/mattn/go-oci8
Tamás Gulácsi32f20cb2018-04-14 08:19:49 +020029 * **Oracle**: https://gopkg.in/rana/ora.v4
30 * **Oracle**: https://gopkg.in/goracle.v2
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110031 * **QL**: http://godoc.org/github.com/cznic/ql/driver
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080032 * **Postgres** (pure Go): https://github.com/lib/pq ` [*] `
33 * **Postgres** (uses cgo): https://github.com/jbarham/gopgsqldriver
mathewfe0c3432018-02-23 08:43:24 -060034 * **Postgres** (pure Go): https://github.com/jackc/pgx ` [**] `
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080035 * **SAP HANA** (pure go): https://github.com/SAP/go-hdb
Tyler Jonesa348b9c2018-01-31 23:43:05 -050036 * **Snowflake** (pure Go): https://github.com/snowflakedb/gosnowflake
Manolis Kamilakisbc6e3482017-12-28 10:26:41 +020037 * **SQLite** (uses cgo): https://github.com/mattn/go-sqlite3 ` [*] `
38 * **SQLite** (uses cgo): https://github.com/gwenn/gosqlite - Supports SQLite dynamic data typing
Jacob Marbled2438af2018-03-04 15:47:22 -080039 * **SQLite** (uses cgo): https://github.com/mxk/go-sqlite
40 * **SQLite**: (uses cgo): https://github.com/rsc/sqlite
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110041 * **Sybase SQL Anywhere**: https://github.com/a-palchikov/sqlago
Michael Berlin713eec32015-12-13 19:16:39 -080042 * **Vitess**: https://godoc.org/github.com/youtube/vitess/go/vt/vitessdriver
mattn5b49c342015-03-17 15:15:20 +090043 * **YQL (Yahoo! Query Language)**: https://github.com/mattn/go-yql
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110044
mathewfe0c3432018-02-23 08:43:24 -060045Drivers marked with ` [*] ` are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test.
46Drivers marked with ` [**] ` pass the compatibility test suite but are not currently included in it.