Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 1 | # SQL database drivers |
| 2 | |
| 3 | The database/sql and database/sql/driver packages are designed for using databases from Go and implementing database drivers, respectively. |
| 4 | |
| 5 | See the design goals doc: |
| 6 | |
| 7 | > http://golang.org/src/pkg/database/sql/doc.txt |
| 8 | |
| 9 | # Drivers |
| 10 | |
| 11 | Drivers for Go's sql package include: |
| 12 | |
Aleksandr Sokolovskii | f33f1e6 | 2018-04-23 22:56:47 +0300 | [diff] [blame] | 13 | * **Apache Ignite/GridGain**: https://github.com/amsokol/ignite-go-client |
Saurav Haloi | a04db79 | 2019-03-11 09:40:27 +0530 | [diff] [blame] | 14 | * **Apache Impala**: https://github.com/bippio/go-impala |
Francis Chuang | 486412d | 2018-04-27 10:36:13 +1000 | [diff] [blame] | 15 | * **Apache Avatica/Phoenix**: https://github.com/apache/calcite-avatica-go |
Long Sun | 41126af | 2018-10-10 09:42:38 +0800 | [diff] [blame] | 16 | * **AWS Athena**: https://github.com/segmentio/go-athena |
Alexey Palazhchenko | e998315 | 2017-09-19 15:59:21 +0300 | [diff] [blame] | 17 | * **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 Harit | 8906cfb | 2019-02-17 16:08:46 +0000 | [diff] [blame] | 19 | * **CockroachDB**: Use any PostgreSQL driver |
Manik Taneja | 6e35320 | 2016-01-14 23:33:16 +0530 | [diff] [blame] | 20 | * **Couchbase N1QL**: https://github.com/couchbase/go_n1ql |
Frank lin Piat | aa96152 | 2018-07-27 15:55:06 +0200 | [diff] [blame] | 21 | * **DB2 LUW** and **DB2/Z with DB2-Connect**: https://bitbucket.org/phiggins/db2cli (Last updated 2015-08) |
Asif Jalil | 9541292 | 2018-04-28 17:28:00 -0400 | [diff] [blame] | 22 | * **DB2 LUW** (uses cgo): https://github.com/asifjalil/cli |
Akhil Ravuri | 02881a3 | 2019-01-21 17:44:19 +0530 | [diff] [blame] | 23 | * **DB2 LUW, z/OS, iSeries and Informix**: https://github.com/ibmdb/go_ibm_db |
Hǎiliàng Wáng | 2bdc471 | 2015-07-03 15:11:43 +0800 | [diff] [blame] | 24 | * **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ć | 80c8bd8 | 2016-02-24 14:26:23 +0100 | [diff] [blame] | 27 | * **MS SQL Server** (uses cgo): https://github.com/minus5/gofreetds |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 28 | * **MySQL**: https://github.com/ziutek/mymysql ` [*] ` |
| 29 | * **MySQL**: https://github.com/go-sql-driver/mysql/ ` [*] ` |
Frank lin Piat | d03eb29 | 2018-07-27 15:56:15 +0200 | [diff] [blame] | 30 | * **ODBC**: https://bitbucket.org/miquella/mgodbc (Last updated 2016-02) |
Jeremy Echols | e226e5d | 2015-07-01 12:42:50 -0700 | [diff] [blame] | 31 | * **ODBC**: https://github.com/alexbrainman/odbc |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 32 | * **Oracle**: https://github.com/mattn/go-oci8 |
Tamás Gulácsi | 32f20cb | 2018-04-14 08:19:49 +0200 | [diff] [blame] | 33 | * **Oracle**: https://gopkg.in/rana/ora.v4 |
| 34 | * **Oracle**: https://gopkg.in/goracle.v2 |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 35 | * **QL**: http://godoc.org/github.com/cznic/ql/driver |
Hǎiliàng Wáng | 2bdc471 | 2015-07-03 15:11:43 +0800 | [diff] [blame] | 36 | * **Postgres** (pure Go): https://github.com/lib/pq ` [*] ` |
| 37 | * **Postgres** (uses cgo): https://github.com/jbarham/gopgsqldriver |
mathew | fe0c343 | 2018-02-23 08:43:24 -0600 | [diff] [blame] | 38 | * **Postgres** (pure Go): https://github.com/jackc/pgx ` [**] ` |
Jeho, Sung | e837948 | 2018-09-05 14:29:20 +0800 | [diff] [blame] | 39 | * **Presto**: https://github.com/prestodb/presto-go-client |
jeffalbion | 5a3d2c4 | 2019-02-07 10:58:29 -0500 | [diff] [blame] | 40 | * **SAP HANA** (uses cgo): https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.03/en-US/0ffbe86c9d9f44338441829c6bee15e6.html |
Hǎiliàng Wáng | 2bdc471 | 2015-07-03 15:11:43 +0800 | [diff] [blame] | 41 | * **SAP HANA** (pure go): https://github.com/SAP/go-hdb |
Chris Burkert | 9e681a2 | 2019-05-31 10:28:35 +0200 | [diff] [blame] | 42 | * **SAP ASE** (uses cgo): https://github.com/SAP/go-ase - package cgo (pure go package planned) |
Tyler Jones | a348b9c | 2018-01-31 23:43:05 -0500 | [diff] [blame] | 43 | * **Snowflake** (pure Go): https://github.com/snowflakedb/gosnowflake |
Manolis Kamilakis | bc6e348 | 2017-12-28 10:26:41 +0200 | [diff] [blame] | 44 | * **SQLite** (uses cgo): https://github.com/mattn/go-sqlite3 ` [*] ` |
| 45 | * **SQLite** (uses cgo): https://github.com/gwenn/gosqlite - Supports SQLite dynamic data typing |
Jacob Marble | d2438af | 2018-03-04 15:47:22 -0800 | [diff] [blame] | 46 | * **SQLite** (uses cgo): https://github.com/mxk/go-sqlite |
| 47 | * **SQLite**: (uses cgo): https://github.com/rsc/sqlite |
Paul Mundt | 2b58965 | 2019-01-05 11:13:40 +0100 | [diff] [blame] | 48 | * **SQL over REST**: https://github.com/adaptant-labs/go-sql-rest-driver |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 49 | * **Sybase SQL Anywhere**: https://github.com/a-palchikov/sqlago |
Thomas | 3691e10 | 2019-02-01 12:05:06 +0100 | [diff] [blame] | 50 | * **Sybase ASE** (pure go): https://github.com/thda/tds |
Siting Ren | fd37d97 | 2019-06-20 11:41:39 -0400 | [diff] [blame^] | 51 | * **Vertica**: https://github.com/vertica/vertica-sql-go |
Daniel Kozlowski | 3e9fb13 | 2018-09-28 09:36:43 -0700 | [diff] [blame] | 52 | * **Vitess**: https://godoc.org/vitess.io/vitess/go/vt/vitessdriver |
mattn | 5b49c34 | 2015-03-17 15:15:20 +0900 | [diff] [blame] | 53 | * **YQL (Yahoo! Query Language)**: https://github.com/mattn/go-yql |
Yi Wang | 0b4b737 | 2019-04-13 12:21:26 -0700 | [diff] [blame] | 54 | * **Apache Hive**: https://github.com/sql-machine-learning/gohive |
Yi Wang | 66da9f4 | 2019-05-22 19:46:43 -0700 | [diff] [blame] | 55 | * **MaxCompute**: https://github.com/sql-machine-learning/gomaxcompute |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 56 | |
mathew | fe0c343 | 2018-02-23 08:43:24 -0600 | [diff] [blame] | 57 | Drivers marked with ` [*] ` are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test. |
| 58 | Drivers marked with ` [**] ` pass the compatibility test suite but are not currently included in it. |