Skip to content

Releases: amphp/sql-common

2.0.2

27 Oct 16:13
v2.0.2
069183d
Compare
Choose a tag to compare

What's Changed

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

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

2.0.1

02 Oct 20:38
v2.0.1
85449d5
Compare
Choose a tag to compare

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

2.0.0

10 Mar 15:29
v2.0.0
996b8ad
Compare
Choose a tag to compare

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.

2.0.0 Beta 10

30 Dec 17:21
v2.0.0-beta.10
5d7dce7
Compare
Choose a tag to compare
2.0.0 Beta 10 Pre-release
Pre-release

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

2.0.0 Beta 9

18 Dec 15:44
v2.0.0-beta.9
8917498
Compare
Choose a tag to compare
2.0.0 Beta 9 Pre-release
Pre-release

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

2.0.0 Beta 8

13 Dec 00:23
v2.0.0-beta.8
ad61674
Compare
Choose a tag to compare
2.0.0 Beta 8 Pre-release
Pre-release

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

2.0.0 Beta 7

13 Dec 00:03
v2.0.0-beta.7
283e52e
Compare
Choose a tag to compare
2.0.0 Beta 7 Pre-release
Pre-release

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

2.0.0 Beta 6

17 Jun 15:49
v2.0.0-beta.6
a6cef9f
Compare
Choose a tag to compare
2.0.0 Beta 6 Pre-release
Pre-release
  • Removed automatically fetching the next result after iteration of a result in PooledResult.

2.0.0 Beta 5

07 May 14:43
v2.0.0-beta.5
aeab5d7
Compare
Choose a tag to compare
2.0.0 Beta 5 Pre-release
Pre-release
  • Fixed PooledStatement not releasing the underlying statement immediately when closed.
  • Next result is fetched immediately in PooledResult if the result is an instance of CommandResult to allow freeing the backing connection sooner.
  • Changed CommandResult to be abstract — this class should be extended in extending libraries so PooledResult can detect if the result can be freed immediately.

2.0.0 Beta 4

01 May 22:56
v2.0.0-beta.4
d123ecd
Compare
Choose a tag to compare
2.0.0 Beta 4 Pre-release
Pre-release
  • Added NestableTransaction and NestedTransaction which can be used to wrap an existing Transaction into a Link interface object, which can then create a "nested" transaction using savepoints.