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
Postgresto avoid collisions with similar names from other libraries. - Result sets now implement
Traversable, allowing them to be used withforeachto 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.
PostgresTransactionnow extendsPostgresLinkinstead ofPostgresExecutorto support nested transactions.- Removed
TimeoutConnectorin favor ofDefaultPostgresConnectorwhich has aCancellationparameter onconnect()which may be used with anAmp\TimeoutCancellation. - Removed
PostgresConnectorsince the interface was replaced by template types onSqlConnector, i.e.SqlConnector<PostgresConfig, PostgresConnection> - Added support for
BYTEAfields. (#57) - Added the
PostgresConnectioninterface extendingPostgresLink. - Removed the
Receiverinterface. These methods are now a part ofPostgresConnection. - Removed the
QuoterInterface. These methods are now a part ofPostgresExecutor.