startTrans method
await db.startTrans();
Implementation
Future<void> startTrans() async {
if (transTimes == 0) {
transTimes++;
await query('start transaction');
} else {
throw ('Only supports startTrans once');
}
}
await db.startTrans();
Future<void> startTrans() async {
if (transTimes == 0) {
transTimes++;
await query('start transaction');
} else {
throw ('Only supports startTrans once');
}
}