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
- REST over SQL: 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! Query Language): https://github.com/mattn/go-yql
[*]
が付いているドライバは、https://github.com/bradfitz/go-sql-test の互換性テストスイートに含まれており、それに合格しています。[**]
が付いているドライバは互換性テストスイートに合格していますが、現在含まれていません。
このコンテンツは Go Wiki の一部です。