2
0

README.md tweaks

This commit is contained in:
Jack Christensen
2020-03-25 20:23:04 -05:00
parent 7ca7515087
commit 1dc45f1fa0
+3 -2
View File
@@ -64,7 +64,7 @@ The `database/sql` interface only allows the underlying driver to return or rece
pgx supports many features beyond what is available through `database/sql`: pgx supports many features beyond what is available through `database/sql`:
* Support for approximately 60 different PostgreSQL types * Support for approximately 70 different PostgreSQL types
* Automatic statement preparation and caching * Automatic statement preparation and caching
* Batch queries * Batch queries
* Single-round trip query mode * Single-round trip query mode
@@ -73,7 +73,7 @@ pgx supports many features beyond what is available through `database/sql`:
* Copy protocol support for faster bulk data loads * Copy protocol support for faster bulk data loads
* Extendable logging support including built-in support for `log15adapter`, [`logrus`](https://github.com/sirupsen/logrus), [`zap`](https://github.com/uber-go/zap), and [`zerolog`](https://github.com/rs/zerolog) * Extendable logging support including built-in support for `log15adapter`, [`logrus`](https://github.com/sirupsen/logrus), [`zap`](https://github.com/uber-go/zap), and [`zerolog`](https://github.com/rs/zerolog)
* Connection pool with after-connect hook for arbitrary connection setup * Connection pool with after-connect hook for arbitrary connection setup
* listen/notify * Listen / notify
* Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings * Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings
* Hstore support * Hstore support
* JSON and JSONB support * JSON and JSONB support
@@ -105,6 +105,7 @@ pgx also can perform better when using PostgreSQL-specific data types or query b
[go_db_bench](https://github.com/jackc/go_db_bench) for some database driver benchmarks. [go_db_bench](https://github.com/jackc/go_db_bench) for some database driver benchmarks.
### Compatibility with `database/sql` ### Compatibility with `database/sql`
pq is exclusively used with `database/sql`. go-pg does not use `database/sql` at all. pgx supports `database/sql` as well as pq is exclusively used with `database/sql`. go-pg does not use `database/sql` at all. pgx supports `database/sql` as well as
its own interface. its own interface.