Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@trowski trowski released this 10 Mar 17:21
v2.0.0
4fffbb2

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 with foreach 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 extends PostgresLink instead of PostgresExecutor to support nested transactions.
  • Removed TimeoutConnector in favor of DefaultPostgresConnector which has a Cancellation parameter on connect() which may be used with an Amp\TimeoutCancellation.
  • Removed PostgresConnector since the interface was replaced by template types on SqlConnector, i.e. SqlConnector<PostgresConfig, PostgresConnection>
  • Added support for BYTEA fields. (#57)
  • Added the PostgresConnection interface extending PostgresLink.
  • Removed the Receiver interface. These methods are now a part of PostgresConnection.
  • Removed the Quoter Interface. These methods are now a part of PostgresExecutor.