insert method
Implementation
Future<String?> insert(
dynamic values, [
bool sqlOnly = false,
]) async {
_select = null;
_update = null;
_delete = null;
_insert = Insert(values: values);
var sql = toSql();
if (sqlOnly) {
return sql;
}
if (log) {
Log.info('[QUERY BUILDER] Executing query...');
Log.info(sql);
}
if (batch != null) {
batch!.execute(sql);
return null;
}
await Database.database.execute(sql);
return null;
}