The _commitAll function is established to commit all transactions for all database resources. As a default, it does not need to be called explicitly.
try{
db.change("TB1","deleteAll",{},"jdbc/efw");
db.change("TB2","deleteAll",{},"jdbc/car");
db._commitAll();
}catch(e){
db._rollbackAll();
}
Calling | Returning |
---|---|
db . _commitAll ( ) | void |