PackageTrack
Sign in Get early access

amphp/sql-common

Common classes for non-blocking SQL implementations.

v2.0.4 1.4M downloads/mo #3806 most downloaded on Packagist amphp/sql-common

What this package is like to depend on

Last release 8 months ago

11 Dec 2025

Release timing varies

gaps range from 8 days to 7 months

Some releases are documented

notes for 5 of 13 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

23 releases · first in 2018

1 release in the last 12 months

see the full history below

Release timeline

23 releases · Oct 2018 to Dec 2025
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 23
  1. v2.0.4 11 Dec 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.0.3...v2.0.4

    Open source →
  2. v2.0.3 07 Jun 2025
    Release notes

    What's Changed

    • Added a reference to $this in the returned Generator from SqlPooledResult::getIterator() to prevent destruction of the SqlPooledResult while the returned Generator object exists.

    Full Changelog: v2.0.2...v2.0.3

    Open source →
  3. v2.0.2 27 Oct 2024
    Release notes

    What's Changed

    • Fixed a memory leak due to SqlStatementPool accumulating on-close callbacks in SqlCommonConnectionPool.

    Full Changelog: v2.0.1...v2.0.2

    Open source →
  4. v2.0.1 02 Oct 2024
    Release notes

    What's Changed

    • Changed syntax in SqlCommonConnectionPool when awaiting a Future to attempt to address a crash possibly caused by PHP opcache.

    Full Changelog: v2.0.0...v2.0.1

    Open source →
  5. v2.0.0 10 Mar 2024
    Release notes

    What's Changed

    • Fixed ConnectionTransaction using separate prepare and execute in execute() instead of calling NestableTransactionExecutor::execute() directly.

    Full Changelog: v2.0.0-beta.7...v2.0.0-beta.8

    Open source →
    Release notes

    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.

    • Added template types to interfaces for better type expression on implementations and extensions.
    • All classes now start with Sql as a prefix to avoid name collisions with other libraries.
    • Renamed ConnectionPool to SqlCommonConnectionPool.
    • Added SqlNestedableTransactionExecutor and SqlNestedTransaction to support nested transactions.
    • Added SqlCommandResult and SqlConnectionTransaction.
    • Renamed PooledResultSet to SqlPooledResult.
    Open source →
    Release notes

    What's Changed

    • Swapped a use of yield from to a foreach loop to avoid a PHP bug which caused an infinite loop (see amphp/mysql#133).

    Full Changelog: v2.0.0-beta.9...v2.0.0-beta.10

    Open source →
    Release notes

    What's Changed

    • Fixed PooledResult not releasing the underlying result set until destruction when using fetchRow() to consume the result.
    • Forbid cloning and serialization of most class instances.

    Full Changelog: v2.0.0-beta.8...v2.0.0-beta.9

    Open source →
    Release notes

    What's Changed

    • Updated transactions for amphp/[email protected].
    • Removed NestableTransaction and TransactionDelegate.
    • Refactored NestedTransaction to act as a base class for nested transactions created using Transaction::beginTransaction().
    • Added ConnectionTransaction for use as a base class for transactions started on a connection.
    • Added NestableTransactionExecutor interface, used with ConnectionTransaction and NestedTransaction.

    Full Changelog: v2.0.0-beta.6...v2.0.0-beta.7

    Open source →
    Release notes
    • Removed automatically fetching the next result after iteration of a result in PooledResult.
    Open source →
  6. v2.0.0-beta.10 30 Dec 2023 pre-release

    Nothing published for this version

  7. v2.0.0-beta.9 17 Dec 2023 pre-release

    Nothing published for this version

  8. v2.0.0-beta.8 12 Dec 2023 pre-release

    Nothing published for this version

  9. v2.0.0-beta.7 09 Dec 2023 pre-release

    Nothing published for this version

  10. v2.0.0-beta.6 17 Jun 2023 pre-release

    Nothing published for this version

  11. v2.0.0-beta.5 07 May 2023 pre-release

    Nothing published for this version

  12. v2.0.0-beta.4 01 May 2023 pre-release

    Nothing published for this version

  13. v2.0.0-beta.3 18 Dec 2022 pre-release

    Nothing published for this version

  14. v2.0.0-beta.2 23 Sep 2022 pre-release

    Nothing published for this version

  15. v2.0.0-beta.1 17 Jul 2022 pre-release

    Nothing published for this version

  16. v1.1.4 06 Jan 2023

    Nothing published for this version

  17. v1.1.3 15 Nov 2020

    Nothing published for this version

  18. v1.1.2 09 Nov 2020

    Nothing published for this version

  19. v1.1.1 04 Mar 2020

    Nothing published for this version

  20. v1.1.0 03 Mar 2020

    Nothing published for this version

  21. v1.0.2 19 Jun 2019

    Nothing published for this version

  22. v1.0.1 04 Apr 2019

    Nothing published for this version

  23. v1.0.0 14 Oct 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive