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 2025Releases
latest 23-
v2.0.411 Dec 2025 -
v2.0.307 Jun 2025Release notes
Open source →What's Changed
- Added a reference to
$thisin the returnedGeneratorfromSqlPooledResult::getIterator()to prevent destruction of theSqlPooledResultwhile the returnedGeneratorobject exists.
Full Changelog: v2.0.2...v2.0.3
- Added a reference to
-
v2.0.227 Oct 2024Release notes
Open source →What's Changed
- Fixed a memory leak due to
SqlStatementPoolaccumulating on-close callbacks inSqlCommonConnectionPool.
Full Changelog: v2.0.1...v2.0.2
- Fixed a memory leak due to
-
v2.0.102 Oct 2024Release notes
Open source →What's Changed
- Changed syntax in
SqlCommonConnectionPoolwhen awaiting aFutureto attempt to address a crash possibly caused by PHP opcache.
Full Changelog: v2.0.0...v2.0.1
- Changed syntax in
-
v2.0.010 Mar 2024Release notes
Open source →What's Changed
- Fixed
ConnectionTransactionusing separate prepare and execute inexecute()instead of callingNestableTransactionExecutor::execute()directly.
Full Changelog: v2.0.0-beta.7...v2.0.0-beta.8
Release notes
Open source →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 withResolutionType.- Added template types to interfaces for better type expression on implementations and extensions.
- All classes now start with
Sqlas a prefix to avoid name collisions with other libraries. - Renamed
ConnectionPooltoSqlCommonConnectionPool. - Added
SqlNestedableTransactionExecutorandSqlNestedTransactionto support nested transactions. - Added
SqlCommandResultandSqlConnectionTransaction. - Renamed
PooledResultSettoSqlPooledResult.
Release notes
Open source →What's Changed
- Swapped a use of
yield fromto aforeachloop 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
Release notes
Open source →What's Changed
- Fixed
PooledResultnot releasing the underlying result set until destruction when usingfetchRow()to consume the result. - Forbid cloning and serialization of most class instances.
Full Changelog: v2.0.0-beta.8...v2.0.0-beta.9
Release notes
Open source →What's Changed
- Updated transactions for
amphp/[email protected]. - Removed
NestableTransactionandTransactionDelegate. - Refactored
NestedTransactionto act as a base class for nested transactions created usingTransaction::beginTransaction(). - Added
ConnectionTransactionfor use as a base class for transactions started on a connection. - Added
NestableTransactionExecutorinterface, used withConnectionTransactionandNestedTransaction.
Full Changelog: v2.0.0-beta.6...v2.0.0-beta.7
Release notes
Open source →- Removed automatically fetching the next result after iteration of a result in
PooledResult.
- Fixed
-
v2.0.0-beta.1030 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.917 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.812 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.709 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.617 Jun 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.507 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.401 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.318 Dec 2022 pre-releaseNothing published for this version
-
v2.0.0-beta.223 Sep 2022 pre-releaseNothing published for this version
-
v2.0.0-beta.117 Jul 2022 pre-releaseNothing published for this version
-
v1.1.406 Jan 2023Nothing published for this version
-
v1.1.315 Nov 2020Nothing published for this version
-
v1.1.209 Nov 2020Nothing published for this version
-
v1.1.104 Mar 2020Nothing published for this version
-
v1.1.003 Mar 2020Nothing published for this version
-
v1.0.219 Jun 2019Nothing published for this version
-
v1.0.104 Apr 2019Nothing published for this version
-
v1.0.014 Oct 2018Nothing published for this version