blob: dbc733b1ed49f4a5fd5a79196a17d7f1e1f0fef1 [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
Long Sun41126af2018-10-10 09:42:38 +080016 * **AWS Athena**: https://github.com/segmentio/go-athena
Alexey Palazhchenkoe9983152017-09-19 15:59:21 +030017 * **ClickHouse** (uses [native TCP interface](https://clickhouse.yandex/docs/en/interfaces/tcp.html)): https://github.com/kshvakov/clickhouse
18 * **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 +000019 * **CockroachDB**: Use any PostgreSQL driver
Manik Taneja6e353202016-01-14 23:33:16 +053020 * **Couchbase N1QL**: https://github.com/couchbase/go_n1ql
Frank lin Piataa961522018-07-27 15:55:06 +020021 * **DB2 LUW** and **DB2/Z with DB2-Connect**: https://bitbucket.org/phiggins/db2cli (Last updated 2015-08)
Asif Jalil95412922018-04-28 17:28:00 -040022 * **DB2 LUW** (uses cgo): https://github.com/asifjalil/cli
Akhil Ravuri02881a32019-01-21 17:44:19 +053023 * **DB2 LUW, z/OS, iSeries and Informix**: https://github.com/ibmdb/go_ibm_db
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080024 * **Firebird SQL**: https://github.com/nakagami/firebirdsql
25 * **MS ADODB**: https://github.com/mattn/go-adodb
26 * **MS SQL Server** (pure go): https://github.com/denisenkom/go-mssqldb
Igor Anić80c8bd82016-02-24 14:26:23 +010027 * **MS SQL Server** (uses cgo): https://github.com/minus5/gofreetds
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110028 * **MySQL**: https://github.com/ziutek/mymysql ` [*] `
29 * **MySQL**: https://github.com/go-sql-driver/mysql/ ` [*] `
Frank lin Piatd03eb292018-07-27 15:56:15 +020030 * **ODBC**: https://bitbucket.org/miquella/mgodbc (Last updated 2016-02)
Jeremy Echolse226e5d2015-07-01 12:42:50 -070031 * **ODBC**: https://github.com/alexbrainman/odbc
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110032 * **Oracle**: https://github.com/mattn/go-oci8
Tamás Gulácsi32f20cb2018-04-14 08:19:49 +020033 * **Oracle**: https://gopkg.in/rana/ora.v4
34 * **Oracle**: https://gopkg.in/goracle.v2
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110035 * **QL**: http://godoc.org/github.com/cznic/ql/driver
Hǎiliàng Wáng2bdc4712015-07-03 15:11:43 +080036 * **Postgres** (pure Go): https://github.com/lib/pq ` [*] `
37 * **Postgres** (uses cgo): https://github.com/jbarham/gopgsqldriver
mathewfe0c3432018-02-23 08:43:24 -060038 * **Postgres** (pure Go): https://github.com/jackc/pgx ` [**] `
Jeho, Sunge8379482018-09-05 14:29:20 +080039 * **Presto**: https://github.com/prestodb/presto-go-client
jeffalbion5a3d2c42019-02-07 10:58:29 -050040 * **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 +080041 * **SAP HANA** (pure go): https://github.com/SAP/go-hdb
Chris Burkert9e681a22019-05-31 10:28:35 +020042 * **SAP ASE** (uses cgo): https://github.com/SAP/go-ase - package cgo (pure go package planned)
Tyler Jonesa348b9c2018-01-31 23:43:05 -050043 * **Snowflake** (pure Go): https://github.com/snowflakedb/gosnowflake
Manolis Kamilakisbc6e3482017-12-28 10:26:41 +020044 * **SQLite** (uses cgo): https://github.com/mattn/go-sqlite3 ` [*] `
45 * **SQLite** (uses cgo): https://github.com/gwenn/gosqlite - Supports SQLite dynamic data typing
Jacob Marbled2438af2018-03-04 15:47:22 -080046 * **SQLite** (uses cgo): https://github.com/mxk/go-sqlite
47 * **SQLite**: (uses cgo): https://github.com/rsc/sqlite
Paul Mundt2b589652019-01-05 11:13:40 +010048 * **SQL over REST**: https://github.com/adaptant-labs/go-sql-rest-driver
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110049 * **Sybase SQL Anywhere**: https://github.com/a-palchikov/sqlago
Thomas3691e102019-02-01 12:05:06 +010050 * **Sybase ASE** (pure go): https://github.com/thda/tds
Siting Renfd37d972019-06-20 11:41:39 -040051 * **Vertica**: https://github.com/vertica/vertica-sql-go
Daniel Kozlowski3e9fb132018-09-28 09:36:43 -070052 * **Vitess**: https://godoc.org/vitess.io/vitess/go/vt/vitessdriver
mattn5b49c342015-03-17 15:15:20 +090053 * **YQL (Yahoo! Query Language)**: https://github.com/mattn/go-yql
Yi Wang0b4b7372019-04-13 12:21:26 -070054 * **Apache Hive**: https://github.com/sql-machine-learning/gohive
Yi Wang66da9f42019-05-22 19:46:43 -070055 * **MaxCompute**: https://github.com/sql-machine-learning/gomaxcompute
Andrew Gerrand5bc444d2014-12-10 11:35:11 +110056
mathewfe0c3432018-02-23 08:43:24 -060057Drivers marked with ` [*] ` are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test.
58Drivers marked with ` [**] ` pass the compatibility test suite but are not currently included in it.