Skip to content

Commit

Permalink
Rename getIsolationLevel() to getIsolation()
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 8, 2023
1 parent caaf64c commit ba5b0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ interface Connection extends Link
*/
public function getConfig(): SqlConfig;

/**
* @return TransactionIsolation Current transaction isolation used when beginning transactions on this connection.
*/
public function getTransactionIsolation(): TransactionIsolation;

/**
* Sets the transaction isolation level for transactions began on this link.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
interface Transaction extends Link
{
public function getIsolationLevel(): TransactionIsolation;
public function getIsolation(): TransactionIsolation;

/**
* @return bool True if the transaction is active, false if it has been committed or rolled back.
Expand Down

0 comments on commit ba5b0ff

Please sign in to comment.