mirror of https://github.com/jackc/pgx.git
Update docs
parent
bcea1fcd3f
commit
246baf2746
|
@ -80,6 +80,7 @@ pgx supports many additional features beyond what is available through database/
|
||||||
* NULL mapping to Null* struct or pointer to pointer.
|
* NULL mapping to Null* struct or pointer to pointer.
|
||||||
* Supports database/sql.Scanner and database/sql/driver.Valuer interfaces for custom types
|
* Supports database/sql.Scanner and database/sql/driver.Valuer interfaces for custom types
|
||||||
* Notice response handling (this is different than listen / notify)
|
* Notice response handling (this is different than listen / notify)
|
||||||
|
* Simulated nested transactions with savepoints
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
|
|
7
doc.go
7
doc.go
|
@ -175,7 +175,8 @@ Prepared Statements
|
||||||
|
|
||||||
Prepared statements can be manually created with the Prepare method. However, this is rarely necessary because pgx
|
Prepared statements can be manually created with the Prepare method. However, this is rarely necessary because pgx
|
||||||
includes an automatic statement cache by default. Queries run through the normal Query, QueryRow, and Exec functions are
|
includes an automatic statement cache by default. Queries run through the normal Query, QueryRow, and Exec functions are
|
||||||
automatically prepared on first execution and the prepared statement is reused on subsequent executions.
|
automatically prepared on first execution and the prepared statement is reused on subsequent executions. See ParseConfig
|
||||||
|
for information on how to customize or disable the statement cache.
|
||||||
|
|
||||||
Copy Protocol
|
Copy Protocol
|
||||||
|
|
||||||
|
@ -204,8 +205,8 @@ Use the underlying pgconn.PgConn for listen and notify.
|
||||||
Logging
|
Logging
|
||||||
|
|
||||||
pgx defines a simple logger interface. Connections optionally accept a logger that satisfies this interface. Set
|
pgx defines a simple logger interface. Connections optionally accept a logger that satisfies this interface. Set
|
||||||
LogLevel to control logging verbosity. Adapters for github.com/inconshreveable/log15, github.com/sirupsen/logrus, and
|
LogLevel to control logging verbosity. Adapters for github.com/inconshreveable/log15, github.com/sirupsen/logrus,
|
||||||
the testing log are provided in the log directory.
|
go.uber.org/zap, github.com/rs/zerolog, and the testing log are provided in the log directory.
|
||||||
|
|
||||||
PgBouncer
|
PgBouncer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue