2.0.0 Beta 6
Pre-release
Pre-release
What's Changed
- The
Transaction
interface now extendsLink
, adding nested transaction functionality throughbeginTransaction()
on a transaction object. - Added
Connection
interface with methods to retrieve the config and get/set the current transaction isolation. - The
TransactionIsolation
argument ofLink::beginTransaction()
has been removed. Transaction isolation is now set on the connection in the newConnection
interface. Pool
now extendsConnection
instead ofLink
.Pool::extractConnection()
returns an instance ofConnection
instead ofLink
.SqlConnector::connect()
returns an instance ofConnection
instead ofLink
.- Renamed
Transaction::getIsolationLevel()
togetIsolation()
. - Removed the methods
createSavepoint()
,rollbackTo()
, andreleaseSavepont()
fromTransaction
. Use nested transactions throughbeginTransaction()
instead. - Added
onCommit()
andonRollback()
methods toTransaction
. These methods attach callbacks when the transaction is either committed or rolled back, respectively.
Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6