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