summaryrefslogtreecommitdiffstats
path: root/lib/public/idbconnection.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-10 14:15:44 +0200
committerRobin Appelman <icewind@owncloud.com>2015-08-10 14:15:44 +0200
commit58e96e53b039365751eb8c4a2d511fcfcf507891 (patch)
tree997d2a7726ba44601d6df3e95bfea5b08606a25a /lib/public/idbconnection.php
parent06065189d768e5b33cb4798403db34b12cb60ef7 (diff)
downloadnextcloud-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.php8
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
*/