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
|
@ -19,6 +19,7 @@ Scholar.DB = new function(){
|
||||||
this.beginTransaction = beginTransaction;
|
this.beginTransaction = beginTransaction;
|
||||||
this.commitTransaction = commitTransaction;
|
this.commitTransaction = commitTransaction;
|
||||||
this.rollbackTransaction = rollbackTransaction;
|
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){
|
function getColumns(table){
|
||||||
var db = _getDBConnection();
|
var db = _getDBConnection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user