Doc tweaks

v3-ann
Jack Christensen 2017-07-21 14:09:38 -05:00
parent 4d6fe2d5fa
commit 062d97deb2
1 changed files with 9 additions and 11 deletions

20
doc.go
View File

@ -62,17 +62,15 @@ Use Exec to execute a query that does not return a result set.
Connection Pool Connection Pool
Connection pool usage is explicit and configurable. In pgx, a connection can Connection pool usage is explicit and configurable. In pgx, a connection can be
be created and managed directly, or a connection pool with a configurable created and managed directly, or a connection pool with a configurable maximum
maximum connections can be used. Also, the connection pool offers an after connections can be used. The connection pool offers an after connect hook that
connect hook that allows every connection to be automatically setup before allows every connection to be automatically setup before being made available in
being made available in the connection pool. This is especially useful to the connection pool.
ensure all connections have the same prepared statements available or to
change any other connection settings.
It delegates Query, QueryRow, Exec, and Begin functions to an automatically It delegates methods such as QueryRow to an automatically checked out and
checked out and released connection so you can avoid manually acquiring and released connection so you can avoid manually acquiring and releasing
releasing connections when you do not need that level of control. connections when you do not need that level of control.
var name string var name string
var weight int64 var weight int64
@ -118,7 +116,7 @@ particular:
Null Mapping Null Mapping
pgx can map nulls in two ways. The first is package pgtype provides types that pgx can map nulls in two ways. The first is package pgtype provides types that
have a data field and a null indicator field. They work in a similar fashion to have a data field and a status field. They work in a similar fashion to
database/sql. The second is to use a pointer to a pointer. database/sql. The second is to use a pointer to a pointer.
var foo pgtype.Varchar var foo pgtype.Varchar