pq-Go的纯数据库Postgres驱动程序,用于Go的数据库/ sql软件包。现已弃用该软件包。 最新版本位于github.com/lib/pq。 安装go get github.com/bmizerany/pq Docs http://go.pkgdoc.or pq-用于Go的数据库/ sql软件包的纯Go postgres驱动程序,现已弃用。 最新版本位于github.com/lib/pq。 安装go get github.com/bmizerany/pq文档http://go.pkgdoc.org/github.com/bmizerany/pq使用包main import(_“ github.com/bmizerany/pq”“ database / sql”)func main(){db,err:= sql.Open(“ postgres”,“ user = pqgotest dbname = pqgotest sslmode = verify-full”)// ...}连接字符串参数这些是libpq连接pa的子集