insert method

void insert(
  1. Table table,
  2. Map<String, Object?> values, {
  3. 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));
}