2.0.0
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType>
have been replaced with ResolutionType
.
- Non-extension-specific classes and interfaces now are prefixed with
Postgres
to avoid collisions with similar names from other libraries. - Result sets now implement
Traversable
, allowing them to be used withforeach
to iterate over result rows. - Marked most classes as internal, leaving only interfaces and concrete implementations required to use the API or create a custom connector.
PostgresTransaction
now extendsPostgresLink
instead ofPostgresExecutor
to support nested transactions.- Removed
TimeoutConnector
in favor ofDefaultPostgresConnector
which has aCancellation
parameter onconnect()
which may be used with anAmp\TimeoutCancellation
. - Removed
PostgresConnector
since the interface was replaced by template types onSqlConnector
, i.e.SqlConnector<PostgresConfig, PostgresConnection>
- Added support for
BYTEA
fields. (#57) - Added the
PostgresConnection
interface extendingPostgresLink
. - Removed the
Receiver
interface. These methods are now a part ofPostgresConnection
. - Removed the
Quoter
Interface. These methods are now a part ofPostgresExecutor
.