mirror of https://github.com/jackc/pgx.git
commit
9b9df4abdf
|
@ -73,7 +73,7 @@ pgx supports many additional features beyond what is available through database/
|
||||||
* JSON and JSONB support
|
* JSON and JSONB support
|
||||||
* Maps inet and cidr PostgreSQL types to net.IPNet and net.IP
|
* Maps inet and cidr PostgreSQL types to net.IPNet and net.IP
|
||||||
* Large object support
|
* Large object support
|
||||||
* 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
|
* Simulated nested transactions with savepoints
|
||||||
|
@ -83,7 +83,7 @@ pgx supports many additional features beyond what is available through database/
|
||||||
There are three areas in particular where pgx can provide a significant performance advantage over the standard
|
There are three areas in particular where pgx can provide a significant performance advantage over the standard
|
||||||
`database/sql` interface and/or other drivers.
|
`database/sql` interface and/or other drivers.
|
||||||
|
|
||||||
1. PostgreSQL specific types - Types such as arrays can be parsed much quicker because pgx uses the binary format
|
1. PostgreSQL specific types - Types such as arrays can be parsed much quicker because pgx uses the binary format.
|
||||||
2. Automatic statement preparation and caching - pgx will prepare and cache statements by default. This can provide an
|
2. Automatic statement preparation and caching - pgx will prepare and cache statements by default. This can provide an
|
||||||
significant free improvement to code that does not explicitly use prepared statements. Under certain workloads it
|
significant free improvement to code that does not explicitly use prepared statements. Under certain workloads it
|
||||||
performs nearly 3x the queries per second.
|
performs nearly 3x the queries per second.
|
||||||
|
@ -96,11 +96,11 @@ from pgx for lower-level control.
|
||||||
|
|
||||||
## github.com/jackc/pgconn
|
## github.com/jackc/pgconn
|
||||||
|
|
||||||
pgconn is a lower-level PostgreSQL database driver that operates at nearly the same level is the C library libpq.
|
pgconn is a lower-level PostgreSQL database driver that operates at nearly the same level as the C library libpq.
|
||||||
|
|
||||||
## github.com/jackc/pgx/v4/pgxpool
|
## github.com/jackc/pgx/v4/pgxpool
|
||||||
|
|
||||||
pgxpool is a connection pool for pgx. pgx is entirely decoupled from its default pool implementation. This means pgx can be used with a different pool without any pool at all.
|
pgxpool is a connection pool for pgx. pgx is entirely decoupled from its default pool implementation. This means pgx can be used with a different pool or without any pool at all.
|
||||||
|
|
||||||
## github.com/jackc/pgx/v4/stdlib
|
## github.com/jackc/pgx/v4/stdlib
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue