insert method
Insert a row in a table
table
the table to insert into
Returns a future with the last inserted id
Implementation
Future<int?> insert(
{required String table,
required DbRow row,
bool verbose = false}) async {
int? res;
try {
res = await _db.insert(
table: table, row: row.toStringsMap(), verbose: verbose);
} catch (e) {
rethrow;
}
return res;
}