Go Wiki:SQL 数据库驱动程序
database/sql 和 database/sql/driver 软件包分别设计用于从 Go 使用数据库和实现数据库驱动程序。
请参阅设计目标文档
驱动程序
Go 的 sql 软件包的驱动程序包括
- Amazon AWS Athena: https://github.com/uber/athenadriver
- AWS Athena: https://github.com/segmentio/go-athena
- AWS DynamoDB: https://github.com/btnguyen2k/godynamo
- Apache Avatica/Phoenix: https://github.com/apache/calcite-avatica-go
- Apache H2: https://github.com/jmrobles/h2go
- Apache Hive: https://github.com/sql-machine-learning/gohive
- Apache Ignite/GridGain: https://github.com/amsokol/ignite-go-client
- Apache Impala: https://github.com/bippio/go-impala
- Azure Cosmos DB: https://github.com/btnguyen2k/gocosmos
- ClickHouse(使用 HTTP API):https://github.com/mailru/go-clickhouse
- ClickHouse(使用 本机 TCP 接口):https://github.com/ClickHouse/clickhouse-go
- CockroachDB:使用任何 PostgreSQL 驱动程序
- Couchbase N1QL: https://github.com/couchbase/go_n1ql
- DB2 LUW(使用 cgo):https://github.com/asifjalil/cli
- DB2 LUW 和 DB2/Z with DB2-Connect: https://bitbucket.org/phiggins/db2cli(上次更新 2015-08)
- DB2 LUW、z/OS、iSeries 和 Informix: https://github.com/ibmdb/go_ibm_db
- Databricks: https://github.com/databricks/databricks-sql-go
- DuckDB: https://github.com/marcboeker/go-duckdb
- Exasol:(纯 Go):https://github.com/exasol/exasol-driver-go
- Firebird SQL: https://github.com/nakagami/firebirdsql
- Genji(纯 Go):https://github.com/genjidb/genji
- Google Cloud BigQuery: https://github.com/solcates/go-sql-bigquery
- Google Cloud Spanner: https://github.com/googleapis/go-sql-spanner
- Google Cloud Spanner: https://github.com/rakyll/go-sql-driver-spanner
- MS ADODB: https://github.com/mattn/go-adodb
- MS SQL Server (纯 Go):https://github.com/microsoft/go-mssqldb
- MS SQL Server (使用 cgo):https://github.com/minus5/gofreetds
- MaxCompute: https://github.com/sql-machine-learning/gomaxcompute
- MySQL: https://github.com/go-sql-driver/mysql/
[*]
- MySQL: https://github.com/siddontang/go-mysql/
[**]
(还处理复制) - MySQL: https://github.com/ziutek/mymysql
[*]
- ODBC: https://bitbucket.org/miquella/mgodbc(最后更新 2016-02)
- ODBC: https://github.com/alexbrainman/odbc
- Oracle(纯 Go):https://github.com/sijms/go-ora
- Oracle(使用 cgo):https://github.com/godror/godror
- Oracle(使用 cgo):https://github.com/mattn/go-oci8
- Oracle(使用 cgo):https://gopkg.in/rana/ora.v4
- Postgres(纯 Go):https://github.com/jackc/pgx
[*]
- Postgres(纯 Go):https://github.com/lib/pq
[*]
- Postgres(使用 cgo):https://github.com/jbarham/gopgsqldriver
- Presto: https://github.com/prestodb/presto-go-client
- QL: https://pkg.go.dev/modernc.org/ql
- SAP ASE(纯 Go):https://github.com/SAP/go-ase
- SAP ASE(使用 cgo):https://github.com/SAP/cgo-ase
- SAP HANA(纯 Go):https://github.com/SAP/go-hdb
- SAP HANA(使用 cgo):https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.03/en-US/0ffbe86c9d9f44338441829c6bee15e6.html
- SQL over REST: https://github.com/adaptant-labs/go-sql-rest-driver
- SQLite(使用 cgo):https://github.com/gwenn/gosqlite - 支持 SQLite 动态数据类型
- SQLite(使用 cgo):https://github.com/mattn/go-sqlite3
[*]
- SQLite(使用 cgo):https://github.com/mxk/go-sqlite
- SQLite: (纯 Go):https://modernc.org/sqlite
- SQLite: (纯 Go):https://github.com/ncruces/go-sqlite3
- SQLite: (使用 cgo):https://github.com/rsc/sqlite
- SingleStore:使用任何 MySQL 驱动程序
- Snowflake(纯 Go):https://github.com/snowflakedb/gosnowflake
- Sybase ASE(纯 Go):https://github.com/thda/tds
- Sybase SQL Anywhere: https://github.com/a-palchikov/sqlago
- TiDB:使用任何 MySQL 驱动程序
- Trino: https://github.com/trinodb/trino-go-client
- Vertica: https://github.com/vertica/vertica-sql-go
- Vitess: https://pkg.go.dev/vitess.io/vitess/go/vt/vitessdriver
- YDB(纯 Go):https://github.com/ydb-platform/ydb-go-sdk
- YQL (Yahoo! 查询语言): https://github.com/mattn/go-yql
标记为 [*]
的驱动程序都包含在 https://github.com/bradfitz/go-sql-test 中,并通过了兼容性测试套件。标记为 [**]
的驱动程序通过了兼容性测试套件,但目前不包含在其中。
此内容是 Go Wiki 的一部分。