blob: b5d3b9a517eb31ba7feb74428b94fee87f3f2168 [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
Saurav Haloia04db792019-03-11 09:40:27 +053014 * **Apache Impala**: https://github.com/bippio/go-impala
Francis Chuang486412d2018-04-27 10:36:13 +100015 * **Apache Avatica/Phoenix**: https://github.com/apache/calcite-avatica-go
Henry Fuheng Wu86179862020-02-26 13:42:34 -080016 * **Amazon AWS Athena**: https://github.com/uber/athenadriver
Long Sun41126af2018-10-10 09:42:38 +080017 * **AWS Athena**: https://github.com/segmentio/go-athena
Alexey Palazhchenkoe9983152017-09-19 15:59:21 +030018 * **ClickHouse** (uses [native TCP interface](https://clickhouse.yandex/docs/en/interfaces/tcp.html)): https://github.com/kshvakov/clickhouse
19 * **ClickHouse** (uses [HTTP API](https://clickhouse.yandex/docs/en/interfaces/http_interface.html)): https://github.com/mailru/go-clickhouse
Aditya Harit8906cfb2019-02-17 16:08:46 +000020 * **CockroachDB**: Use any PostgreSQL driver
Manik Taneja6e353202016-01-14 23:33:16 +053021 * **Couchbase N1QL**: https://github.com/couchbase/go_n1ql
Frank lin Piataa961522018-07-27 15:55:06 +020022 * **DB2 LUW** and **DB2/Z with DB2-Connect**: https://bitbucket.org/phiggins/db2cli (Last updated 2015-08)
Asif Jalil95412922018-04-28 17:28:00 -040023 * **DB2 LUW** (uses cgo): https://github.com/asifjalil/cli
Akhil Ravuri02881a32019-01-21 17:44:19 +053024 * **DB2 LUW, z/OS, iSeries and Informix**: https://github.com/ibmdb/go_ibm_db
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080025 * **Firebird SQL**: https://github.com/nakagami/firebirdsql
Sol Cates7dcc4372019-10-24 14:47:32 -070026 * **Google Cloud BigQuery**: https://github.com/solcates/go-sql-bigquery
JBD2ee4b242020-04-21 21:27:46 -070027 * **Google Cloud Spanner**: https://github.com/rakyll/go-sql-driver-spanner
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080028 * **MS ADODB**: https://github.com/mattn/go-adodb
29 * **MS SQL Server** (pure go): https://github.com/denisenkom/go-mssqldb
Igor Anić80c8bd82016-02-24 14:26:23 +010030 * **MS SQL Server** (uses cgo): https://github.com/minus5/gofreetds
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110031 * **MySQL**: https://github.com/go-sql-driver/mysql/ ` [*] `
Markus Dosch20b4ba82019-09-12 13:56:06 +020032 * **MySQL**: https://github.com/siddontang/go-mysql/ ` [**] ` (also handles replication)
33 * **MySQL**: https://github.com/ziutek/mymysql ` [*] `
Frank lin Piatd03eb292018-07-27 15:56:15 +020034 * **ODBC**: https://bitbucket.org/miquella/mgodbc (Last updated 2016-02)
Jeremy Echolse226e5d2015-07-01 12:42:50 -070035 * **ODBC**: https://github.com/alexbrainman/odbc
大猫c29178c2020-05-06 22:10:11 +080036 * **Oracle** (uses cgo): https://github.com/mattn/go-oci8
Kurt K158d8c32020-07-07 14:43:53 -070037 * **Oracle** (uses cgo): https://gopkg.in/rana/ora.v4
Santiago De la Cruz7daacf02019-12-20 15:40:26 -040038 * **Oracle** (uses cgo): https://github.com/godror/godror
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110039 * **QL**: http://godoc.org/github.com/cznic/ql/driver
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080040 * **Postgres** (pure Go): https://github.com/lib/pq ` [*] `
41 * **Postgres** (uses cgo): https://github.com/jbarham/gopgsqldriver
mathewfe0c3432018-02-23 08:43:24 -060042 * **Postgres** (pure Go): https://github.com/jackc/pgx ` [**] `
Jeho, Sunge8379482018-09-05 14:29:20 +080043 * **Presto**: https://github.com/prestodb/presto-go-client
jeffalbion5a3d2c42019-02-07 10:58:29 -050044 * **SAP HANA** (uses cgo): https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.03/en-US/0ffbe86c9d9f44338441829c6bee15e6.html
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080045 * **SAP HANA** (pure go): https://github.com/SAP/go-hdb
Chris Burkert9e681a22019-05-31 10:28:35 +020046 * **SAP ASE** (uses cgo): https://github.com/SAP/go-ase - package cgo (pure go package planned)
Tyler Jonesa348b9c2018-01-31 23:43:05 -050047 * **Snowflake** (pure Go): https://github.com/snowflakedb/gosnowflake
Manolis Kamilakisbc6e3482017-12-28 10:26:41 +020048 * **SQLite** (uses cgo): https://github.com/mattn/go-sqlite3 ` [*] `
49 * **SQLite** (uses cgo): https://github.com/gwenn/gosqlite - Supports SQLite dynamic data typing
Jacob Marbled2438af2018-03-04 15:47:22 -080050 * **SQLite** (uses cgo): https://github.com/mxk/go-sqlite
51 * **SQLite**: (uses cgo): https://github.com/rsc/sqlite
Sam Mortimer155002f2020-09-08 09:48:18 -070052 * **SQLite**: (pure go): https://modernc.org/sqlite
Paul Mundt2b589652019-01-05 11:13:40 +010053 * **SQL over REST**: https://github.com/adaptant-labs/go-sql-rest-driver
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110054 * **Sybase SQL Anywhere**: https://github.com/a-palchikov/sqlago
Thomas3691e102019-02-01 12:05:06 +010055 * **Sybase ASE** (pure go): https://github.com/thda/tds
siddontang229340b2019-10-26 20:48:36 +080056 * **TiDB**: Use any MySQL driver
Siting Renfd37d972019-06-20 11:41:39 -040057 * **Vertica**: https://github.com/vertica/vertica-sql-go
Daniel Kozlowski3e9fb132018-09-28 09:36:43 -070058 * **Vitess**: https://godoc.org/vitess.io/vitess/go/vt/vitessdriver
mattn5b49c342015-03-17 15:15:20 +090059 * **YQL (Yahoo! Query Language)**: https://github.com/mattn/go-yql
Yi Wang0b4b7372019-04-13 12:21:26 -070060 * **Apache Hive**: https://github.com/sql-machine-learning/gohive
Yi Wang66da9f42019-05-22 19:46:43 -070061 * **MaxCompute**: https://github.com/sql-machine-learning/gomaxcompute
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110062
mathewfe0c3432018-02-23 08:43:24 -060063Drivers marked with ` [*] ` are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test.
64Drivers marked with ` [**] ` pass the compatibility test suite but are not currently included in it.