update method

Future<int> update({
  1. required String table,
  2. required DbRow row,
  3. required String where,
  4. bool verbose = false,
})

Update some datapoints in the database

Implementation

Future<int> update(
    {required String table,
    required DbRow row,
    required String where,
    bool verbose = false}) async {
  int res;
  try {
    res = await _db.update(
        table: table,
        row: row.toStringsMap(),
        where: where,
        verbose: verbose);
  } catch (e) {
    rethrow;
  }
  return res;
}