executeRawSql method
Executes an INSERT/UPDATE/DELETE etc.; carries back affectedRows if a value is given
Implementation
@override
Future<LazarusDbResult> executeRawSql(String sql,
[List<Object?> args = const []]) async {
try {
await WapDb.exec(sql, args);
// WapDb.exec doesn't return affectedRows; carried back here once the gateway provides it in the future.
return const LazarusDbResult(success: true, affectedRows: -1);
} catch (e) {
return LazarusDbResult.error("$e");
}
}