Skip to content

2.0.0 Beta 6

Pre-release
Pre-release
Compare
Choose a tag to compare
@trowski trowski released this 12 Dec 23:58
· 3 commits to 2.x since this release
v2.0.0-beta.6
9479805

What's Changed

  • The Transaction interface now extends Link, adding nested transaction functionality through beginTransaction() on a transaction object.
  • Added Connection interface with methods to retrieve the config and get/set the current transaction isolation.
  • The TransactionIsolation argument of Link::beginTransaction() has been removed. Transaction isolation is now set on the connection in the new Connection interface.
  • Pool now extends Connection instead of Link. Pool::extractConnection() returns an instance of Connection instead of Link.
  • SqlConnector::connect() returns an instance of Connection instead of Link.
  • Renamed Transaction::getIsolationLevel() to getIsolation().
  • Removed the methods createSavepoint(), rollbackTo(), and releaseSavepont() from Transaction. Use nested transactions through beginTransaction() instead.
  • Added onCommit() and onRollback() methods to Transaction. 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