www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4e0dbb3885aa4d11cdb09df25daf8f063300e171
parent 8572aefbcb48badf72a357679e114aa3a1a6bbd8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  1 Jun 2006 22:04:09 +0000

DB.transactionInProgress() -- this generally shouldn't be needed externally, but due to nested transactions there can be cases where it's unavoidable


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/db.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -19,6 +19,7 @@ Scholar.DB = new function(){ this.beginTransaction = beginTransaction; this.commitTransaction = commitTransaction; this.rollbackTransaction = rollbackTransaction; + this.transactionInProgress = transactionInProgress; ///////////////////////////////////////////////////////////////// // @@ -232,6 +233,12 @@ Scholar.DB = new function(){ } + function transactionInProgress(){ + var db = _getDBConnection(); + return db.transactionInProgress; + } + + function getColumns(table){ var db = _getDBConnection();