execute method

int? execute(
  1. String sql, {
  2. List? arguments,
  3. bool getLastInsertId = false,
})

Execute a insert, update or delete using sql in normal or prepared mode using arguments.

This returns the number of affected rows. Only if getLastInsertId is set to true, the id of the last inserted row is returned.

Implementation

int? execute(String sql,
    {List<dynamic>? arguments, bool getLastInsertId = false}) {
  return _sqliteDb.execute(sql,
      arguments: arguments, getLastInsertId: getLastInsertId);
}