excuteRawQuery method
Executes a raw SQL query with optional arguments and returns a Future that completes with a JobDone object.
The sql parameter is the raw SQL query to execute.
The arguments parameter is an optional list of arguments
to replace placeholders in the sql query.
Example usage:
final result = await excuteRawQuery(
'SELECT * FROM users WHERE age > ?', [18],
);
Implementation
@override
Future<JobDone> excuteRawQuery(String sql, [List<Object?>? arguments]) async {
try {
await database!.execute(sql, arguments);
return const JobDone();
} catch (e) {
throw DatabaseBridgeException(error: e);
}
}