save method

Future<int> save(
  1. Map<String, dynamic> map,
  2. String table, {
  3. List<String>? keys,
  4. String? dbName,
})

Insert or update depending on whether a row with the same key exists (UPSERT). Returns the row id.

Implementation

Future<int> save(Map<String, dynamic> map, String table,
    {List<String>? keys, String? dbName}) async {
  return _insertOrUpdate(map, table, keys: keys, dbName: dbName);
}