DB.transactionInProgress() -- this generally shouldn't be needed externally, but due to nested transactions there can be cases where it's unavoidable
This commit is contained in:
parent
8572aefbcb
commit
4e0dbb3885
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue