execute method

Future<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

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