diff --git a/doc.go b/doc.go index e6611224..d22f9608 100644 --- a/doc.go +++ b/doc.go @@ -22,6 +22,11 @@ here. In addition, a config struct can be created by `ParseConfig` and modified conn, err := pgx.ConnectConfig(context.Background(), config) +Connection Pool + +`*pgx.Conn` represents a single connection to the database and is not concurrency safe. Use sub-package pgxpool for a +concurrency safe connection pool. + Query Interface pgx implements Query and Scan in the familiar database/sql style. @@ -77,10 +82,6 @@ Use Exec to execute a query that does not return a result set. return errors.New("No row found to delete") } -Connection Pool - -See sub-package pgxpool for a connection pool. - Base Type Mapping pgx maps between all common base types directly between Go and PostgreSQL. In particular: