PostgreSQL的Go语言驱动pq.zip

时间:2022-08-05 22:20:28
【文件属性】:

文件名称:PostgreSQL的Go语言驱动pq.zip

文件大小:110KB

文件格式:ZIP

更新时间:2022-08-05 22:20:28

开源项目

pq 是一个纯 Go 语言实现的 PostgreSQL 数据库客户端驱动包。 特性: SSL Handles bad connections for database/sql Scan time.Time correctly (i.e. timestamp[tz], time[tz], date) Scan binary blobs correctly (i.e. bytea) Package for hstore support COPY FROM support pq.ParseURL for converting urls to connection strings for sql.Open. Many libpq compatible environment variables Unix socket support Notifications: LISTEN/NOTIFY 示例代码: package main import (     _ "github.com/bmizerany/pq"     "database/sql" ) func main() {     db, err := sql.Open("postgres", "user=pqgotest dbname=pqgotest sslmode=verify-full")     // ... }


【文件预览】:
pq-master
----error.go(15KB)
----go.mod(25B)
----conn.go(45KB)
----rows_test.go(5KB)
----ssl_windows.go(267B)
----ssl_permissions.go(428B)
----user_windows.go(871B)
----copy.go(6KB)
----.travis.sh(2KB)
----buf_test.go(221B)
----array_test.go(33KB)
----certs()
--------bogus_root.crt(1KB)
--------server.crt(4KB)
--------root.crt(1KB)
--------README(172B)
--------postgresql.key(887B)
--------server.key(2KB)
--------postgresql.crt(4KB)
----hstore()
--------hstore_test.go(4KB)
--------hstore.go(3KB)
----oid()
--------gen.go(2KB)
--------types.go(10KB)
--------doc.go(137B)
----TESTS.md(658B)
----go19_test.go(2KB)
----issues_test.go(440B)
----url_test.go(1KB)
----go18_test.go(8KB)
----ssl_test.go(8KB)
----notify.go(23KB)
----CONTRIBUTING.md(1KB)
----.travis.yml(998B)
----encode_test.go(22KB)
----example()
--------listen()
----notify_test.go(11KB)
----buf.go(2KB)
----bench_test.go(10KB)
----doc.go(9KB)
----LICENSE.md(1KB)
----copy_test.go(9KB)
----README.md(3KB)
----array.go(17KB)
----rows.go(2KB)
----connector.go(3KB)
----ssl.go(5KB)
----encode.go(15KB)
----connector_test.go(1KB)
----url.go(2KB)
----scram()
--------scram.go(8KB)
----.gitignore(20B)
----user_posix.go(409B)
----uuid.go(555B)
----conn_test.go(38KB)
----connector_example_test.go(423B)
----conn_go18.go(3KB)
----uuid_test.go(1KB)

网友评论