Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 667 Bytes

db._commit.md

File metadata and controls

30 lines (23 loc) · 667 Bytes

db._commit

The _commit function is established to commit a transaction. As a default, it does not need to be called explicitly.

Sample

try{
	db.change("TB1","deleteAll",{});
	db._commit();
}catch(e){
	db._rollback();
}

API

CallingReturning
db . _commit ( )void
db . _commit ( jdbcResourceName )void
ParametersTypeDescription
jdbcResourceNameStringTo operate the transaction for another database resource, but not the default.