2
0

Tweak docs to make conn / conn pool distinction clearer

This commit is contained in:
Jack Christensen
2020-05-16 08:20:40 -05:00
parent 1b54d15e93
commit f19b08628e
+5 -4
View File
@@ -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: