insertManageConflict method

Future<int?> insertManageConflict({
  1. required String table,
  2. required ConflictAlgorithm conflictAlgorithm,
  3. required DbRow row,
  4. bool verbose = false,
})

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;
}