crate / cratedb-examples

A collection of clear and concise examples how to work with CrateDB.
Apache License 2.0
9 stars 7 forks source link

Bump amphp/postgres from 1.4.5 to 2.0.0 in /by-language/php-amphp #487

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 3 months ago

Bumps amphp/postgres from 1.4.5 to 2.0.0.

Release notes

Sourced from amphp/postgres's releases.

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 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.

2.0.0 Beta 6

What's Changed

  • Compatibility with amphp/sql-common@v2.0.0-beta.9.
  • Forbid cloning and serialization of most class instances.

Full Changelog: https://github.com/amphp/postgres/compare/v2.0.0-beta.5...v2.0.0-beta.6

2.0.0 Beta 5

What's Changed

Nested transactions have been refactored to be created simply with PostgresTransaction::beginTransaction() instead of needing to wrap a PostgresTransaction into a PostgresNestableTransaction. If you did not use savepoints or nested transactions, you likely will be able to upgrade to this version without any code changes.

  • Updated transactions for amphp/sql@v2.0.0-beta.6 and amphp/sql-common@v2.0.0-beta.7. Removed PostgresNestableTransaction.
  • Added PostgresConnection interface extending the base interface Connection from amphp/sql.
  • Merged PostgresQuoter methods into PostgresExecutor and removed PostgresQuoter.
  • Moved PostgresReceiver methods into PostgresConnection and removed PostgresReceiver.

Full Changelog: https://github.com/amphp/postgres/compare/v2.0.0-beta.4...v2.0.0-beta.5

2.0.0 Beta 4

  • Fixed statements used in a nested transaction potentially deadlocking when using ext-pgsql.

2.0.0 Beta 3

  • Added support for BYTEA fields. (#57)
  • Added PostgresNestableTransaction which may be optionally used to create a PostgresLink from a PostgresTransaction object. Nested transactions are implemented using savepoints.
  • PostgresExecutor now extends PostgresQuoter, moving the interface lower in the interface hierarchy.

2.0.0 Beta 2

  • Compatibility with Result::fetchRow() added in amphp/sql@2.0.0-beta.3
  • Added support for BackedEnum instances in statement parameters
  • Removed PostgresConnector since the interface was replaced by template types on SqlConnector, i.e. SqlConnector<PostgresConfig, PostgresConnection>
  • Fixed MONEY type columns from being cast to a float with ext-pgsql, which always resulted in a value of 0. MONEY columns will now be returned as a string, matching ext-pq
  • Requesting the next result set before consuming the entire current result set will now throw an Error

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
amotl commented 3 months ago

PHP 7.x

EOL!

PHP 8.x

PHP Fatal error:  Uncaught Error: Class "Amp\Loop" not found in /home/runner/work/cratedb-examples/cratedb-examples/by-language/php-amphp/basic.php:61

-- https://github.com/crate/cratedb-examples/actions/runs/9567744251/job/26376223467?pr=487#step:7:49

References

Reason

AMPHP no longer ships its own event loop. It’s now based on Revolt.

-- https://amphp.org/upgrade#event-loop

dependabot[bot] commented 3 months ago

Looks like amphp/postgres is up-to-date now, so this is no longer needed.