Releases: amphp/sql-common
Releases · amphp/sql-common
2.0.2
2.0.1
What's Changed
- Changed syntax in
SqlCommonConnectionPool
when awaiting aFuture
to 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
Sql
as a prefix to avoid name collisions with other libraries. - Renamed
ConnectionPool
toSqlCommonConnectionPool
. - Added
SqlNestedableTransactionExecutor
andSqlNestedTransaction
to support nested transactions. - Added
SqlCommandResult
andSqlConnectionTransaction
. - Renamed
PooledResultSet
toSqlPooledResult
.
2.0.0 Beta 10
What's Changed
- Swapped a use of
yield from
to aforeach
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
2.0.0 Beta 9
What's Changed
- Fixed
PooledResult
not 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
ConnectionTransaction
using 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/[email protected]
. - Removed
NestableTransaction
andTransactionDelegate
. - Refactored
NestedTransaction
to act as a base class for nested transactions created usingTransaction::beginTransaction()
. - Added
ConnectionTransaction
for use as a base class for transactions started on a connection. - Added
NestableTransactionExecutor
interface, used withConnectionTransaction
andNestedTransaction
.
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
.
2.0.0 Beta 5
- Fixed
PooledStatement
not releasing the underlying statement immediately when closed. - Next result is fetched immediately in
PooledResult
if the result is an instance ofCommandResult
to allow freeing the backing connection sooner. - Changed
CommandResult
to be abstract — this class should be extended in extending libraries soPooledResult
can detect if the result can be freed immediately.
2.0.0 Beta 4
- Added
NestableTransaction
andNestedTransaction
which can be used to wrap an existingTransaction
into aLink
interface object, which can then create a "nested" transaction using savepoints.