insert method
void
insert(
- Table table,
- Map<
String, Object?> values, { - ConflictAlgorithm conflictAlgorithm = ConflictAlgorithm.abort,
Implementation
void insert(Table table, Map<String, Object?> values, {ConflictAlgorithm conflictAlgorithm = ConflictAlgorithm.abort}) async {
final insertionValues = table.columns.validateMapExcept(table.columns.preprocessMap(values));
batch.insert(table.name, insertionValues);
_tableChanges.add(table);
_inserts.add((table, insertionValues, conflictAlgorithm));
}