|
1 |
| -# 4.0.0 (Prerelease) |
| 1 | +# 4.0.0 (Release candidate) |
2 | 2 |
|
3 |
| -v4 is a major release with many significant changes. |
| 3 | +v4 is a major release with many significant changes. The most significant are included below. |
4 | 4 |
|
5 | 5 | * Simplified establishing a connection with a connection string.
|
6 | 6 | * All potentially blocking operations now require a context.Context. The non-context aware functions have been removed.
|
7 | 7 | * OIDs are hard-coded for known types. This saves the query on connection.
|
8 | 8 | * Context cancellations while network activity is in progress is now always fatal. Previously, it was sometimes recoverable. This led to increased complexity in pgx itself and in application code.
|
9 | 9 | * Go modules are required.
|
10 |
| -* Errors are now implemented in the Go 1.13 style. Tests for specific error types must use `As` or `Is`. |
11 |
| -* `Rows` is now an interface. |
| 10 | +* Errors are now implemented in the Go 1.13 style. |
| 11 | +* `Rows` and `Tx` are now interfaces. |
12 | 12 | * The connection pool as been decoupled from pgx and is now a separate, included package (github.com/jackc/pgx/v4/pgxpool).
|
13 | 13 | * pgtype has been spun off to a separate package (github.com/jackc/pgtype).
|
14 | 14 | * pgproto3 has been spun off to a separate package (github.com/jackc/pgproto3).
|
| 15 | +* Logical replication support has been spun off to a separate package (github.com/jackc/pglogrepl). |
15 | 16 | * Lower level PostgreSQL functionality is now implemented in a separate package (github.com/jackc/pgconn).
|
16 |
| -* Replication support has been temporarily removed. It will be implemented in a separate package. |
17 | 17 | * Tests are now configured with environment variables.
|
| 18 | +* Conn has an automatic statement cache by default. |
| 19 | +* Batch interface has been simplified. |
| 20 | +* QueryArgs has been removed. |
0 commit comments