execute abstract method
Execute an insert, update or delete using sqlToExecute
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. The primaryKey
is sometimes necessary to retrieve the last inserted id.
Implementation
int? execute(String sqlToExecute,
{List<dynamic> arguments,
bool getLastInsertId = false,
String? primaryKey});