go-pgsql
所属分类:PostgreSQL
开发工具:GO
文件大小:40KB
下载次数:0
上传日期:2022-09-08 09:39:18
上 传 者:
sh-1993
说明: Go编程语言的PostgreSQL客户端包
(A PostgreSQL client package for the Go Programming Language)
文件列表:
AUTHORS (550, 2013-05-13)
LICENSE (1404, 2013-05-13)
Makefile (255, 2013-05-13)
conn.go (18717, 2013-05-13)
conn_log.go (1532, 2013-05-13)
conn_read.go (8897, 2013-05-13)
conn_write.go (7239, 2013-05-13)
data (0, 2013-05-13)
data\testdatabase.sql (1976, 2013-05-13)
driver.go (3426, 2013-05-13)
error.go (1963, 2013-05-13)
examples (0, 2013-05-13)
examples\hellosql (0, 2013-05-13)
examples\hellosql\hellosql.go (574, 2013-05-13)
examples\multipleselects (0, 2013-05-13)
examples\multipleselects\multipleselects.go (832, 2013-05-13)
examples\pool (0, 2013-05-13)
examples\pool\pool.go (1609, 2013-05-13)
examples\scan (0, 2013-05-13)
examples\scan\scan.go (776, 2013-05-13)
examples\statements (0, 2013-05-13)
examples\statements\statements.go (1161, 2013-05-13)
messagecodes.go (6278, 2013-05-13)
parameter.go (4576, 2013-05-13)
pgsql_test.go (26462, 2013-05-13)
pool.go (5729, 2013-05-13)
resultset.go (20276, 2013-05-13)
state.go (3332, 2013-05-13)
statement.go (7765, 2013-05-13)
types.go (3472, 2013-05-13)
util.go (303, 2013-05-13)
About go-pgsql
==============
go-pgsql is a [PostgreSQL](http://www.postgresql.org) client library for the
[Go](http://golang.org) programming language.
It partially implements version 3.0 of the
[PostgreSQL](http://www.postgresql.org) frontend/backend protocol, so it
should work with servers of version 7.4 and later.
It now supports database/sql in addition to its existing interface.
Installing go-pgsql
===================
First make sure you have a working [Go](http://golang.org) installation, see
the installation guide at http://golang.org/doc/install.html
Now you should be able to install go-pgsql by running
`go get github.com/lxn/go-pgsql`
Using go-pgsql
==============
There are some examples in the
[examples](examples) directory which
should get you started.
Please open an issue on the bug tracker if you encounter a bug.
Missing Features
================
go-pgsql is currently missing support for some features, including:
- authentication types other than MD5
- SSL encrypted sessions
- some data types like bytea, ...
- canceling commands/queries
- bulk copy
- ...
Connection Info
================
To connect, you must pass a connection string to pgsql.Connect().
Much as with the libpq conninfo parameter, values are optional, and
may be overridden by environment variables at runtime, specifically:
- PGPORT - port number
- PGUSER - user name (defaults to postgres)
- PGHOST - host name/address (defaults to localhost)
- PGDATABASE - name of database (defaults to user name if not specified)
近期下载者:
相关文件:
收藏者: