Releases: amphp/sql-common
Releases · amphp/sql-common
2.0.4
2.0.3
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
2.0.2
What's Changed
- Fixed a memory leak due to
SqlStatementPoolaccumulating on-close callbacks inSqlCommonConnectionPool.
Full Changelog: v2.0.1...v2.0.2
2.0.1
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
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.
- 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.
2.0.0 Beta 10
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
2.0.0 Beta 9
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
2.0.0 Beta 8
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
2.0.0 Beta 7
What's Changed
- Updated transactions for
amphp/sql@v2.0.0-beta.6. - 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
2.0.0 Beta 6
- Removed automatically fetching the next result after iteration of a result in
PooledResult.