diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-10 14:15:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-08-10 14:15:44 +0200 |
commit | 58e96e53b039365751eb8c4a2d511fcfcf507891 (patch) | |
tree | 997d2a7726ba44601d6df3e95bfea5b08606a25a /lib/public/idbconnection.php | |
parent | 06065189d768e5b33cb4798403db34b12cb60ef7 (diff) | |
download | nextcloud-server-58e96e53b039365751eb8c4a2d511fcfcf507891.tar.gz nextcloud-server-58e96e53b039365751eb8c4a2d511fcfcf507891.zip |
add method to check if we're inside a transaction
Diffstat (limited to 'lib/public/idbconnection.php')
-rw-r--r-- | lib/public/idbconnection.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/idbconnection.php b/lib/public/idbconnection.php index 0d04c43d73e..6a4373583fa 100644 --- a/lib/public/idbconnection.php +++ b/lib/public/idbconnection.php @@ -115,6 +115,14 @@ interface IDBConnection { public function beginTransaction(); /** + * Check if a transaction is active + * + * @return bool + * @since 8.2.0 + */ + public function inTransaction(); + + /** * Commit the database changes done during a transaction that is in progress * @since 6.0.0 */ |