blob: 63e38d1dcf61d64831f03cae0f8d9e0e48b46d24 [file] [log] [blame] [view]
# SQL database drivers
The database/sql and database/sql/driver packages are designed for using databases from Go and implementing database drivers, respectively.
See the design goals doc:
> http://golang.org/src/pkg/database/sql/doc.txt
# Drivers
Drivers for Go's sql package include:
* **Apache Ignite/GridGain**: https://github.com/amsokol/ignite-go-client
* **Apache Avatica/Phoenix**: https://github.com/apache/calcite-avatica-go
* **ClickHouse** (uses [native TCP interface](https://clickhouse.yandex/docs/en/interfaces/tcp.html)): https://github.com/kshvakov/clickhouse
* **ClickHouse** (uses [HTTP API](https://clickhouse.yandex/docs/en/interfaces/http_interface.html)): https://github.com/mailru/go-clickhouse
* **Couchbase N1QL**: https://github.com/couchbase/go_n1ql
* **DB2 LUW** and **DB2/Z with DB2-Connect**: https://bitbucket.org/phiggins/db2cli (Last updated 2015-08)
* **DB2 LUW** (uses cgo): https://github.com/asifjalil/cli
* **Firebird SQL**: https://github.com/nakagami/firebirdsql
* **MS ADODB**: https://github.com/mattn/go-adodb
* **MS SQL Server** (pure go): https://github.com/denisenkom/go-mssqldb
* **MS SQL Server** (uses cgo): https://github.com/minus5/gofreetds
* **MySQL**: https://github.com/ziutek/mymysql ` [*] `
* **MySQL**: https://github.com/go-sql-driver/mysql/ ` [*] `
* **ODBC**: https://bitbucket.org/miquella/mgodbc (Last updated 2016-02)
* **ODBC**: https://github.com/alexbrainman/odbc
* **Oracle**: https://github.com/mattn/go-oci8
* **Oracle**: https://gopkg.in/rana/ora.v4
* **Oracle**: https://gopkg.in/goracle.v2
* **QL**: http://godoc.org/github.com/cznic/ql/driver
* **Postgres** (pure Go): https://github.com/lib/pq ` [*] `
* **Postgres** (uses cgo): https://github.com/jbarham/gopgsqldriver
* **Postgres** (pure Go): https://github.com/jackc/pgx ` [**] `
* **SAP HANA** (pure go): https://github.com/SAP/go-hdb
* **Snowflake** (pure Go): https://github.com/snowflakedb/gosnowflake
* **SQLite** (uses cgo): https://github.com/mattn/go-sqlite3 ` [*] `
* **SQLite** (uses cgo): https://github.com/gwenn/gosqlite - Supports SQLite dynamic data typing
* **SQLite** (uses cgo): https://github.com/mxk/go-sqlite
* **SQLite**: (uses cgo): https://github.com/rsc/sqlite
* **Sybase SQL Anywhere**: https://github.com/a-palchikov/sqlago
* **Vitess**: https://godoc.org/github.com/youtube/vitess/go/vt/vitessdriver
* **YQL (Yahoo! Query Language)**: https://github.com/mattn/go-yql
Drivers marked with ` [*] ` are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test.
Drivers marked with ` [**] ` pass the compatibility test suite but are not currently included in it.