executeRaw method
Execute a raw SQL command and return affected row count
Implementation
@override
Future<int> executeRaw(SqlQuery query) async {
try {
final sqliteQuery = _convertPlaceholders(query.sql);
final result = await _database.rawInsert(
sqliteQuery,
query.args,
);
return result;
} catch (e) {
throw AdapterError(
'Failed to execute command: ${e.toString()}',
originalError: e,
);
}
}