Registry / database / opengauss-opengauss-connector-go-pq

opengauss-opengauss-connector-go-pq

JSON →
library1.0.7gogounverified

Pure Go Postgres driver for database/sql, compatible with openGauss.

go get gitee.com/opengauss/openGauss-connector-go-pq
INSTALL
IMPORT
SIG · OPENGAUSS-OPENGAUS
O
opengauss-opengauss-connector-go-pq
databasegov1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pq
gitee.com/opengauss/openGauss-connector-go-pq

Open a connection to an openGauss database

package main import ( "database/sql" _ "gitee.com/opengauss/openGauss-connector-go-pq" ) func main() { db, err := sql.Open("postgres", "host=localhost port=5432 user=test dbname=test sslmode=disable") if err != nil { panic(err) } defer db.Close() }
Debug
Known issues
gotchaLastInsertId not supported
fix
Use RETURNING clause with QueryRow instead of LastInsertId
affects: all
Upgrade
Version history
1.0.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
opengauss-opengauss-connector-go-pq — go get opengauss-opengauss-connector-go-pq · libregistry