insert method

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

Insert a row in a table

table the table to insert into

Returns a future with the last inserted id

Implementation

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