executeRawSQL method

ResultSet executeRawSQL(
  1. String sql, [
  2. List<Object?>? parameters
])

Runs sql directly on the database handle, bypassing the entity layer.

Useful for maintenance statements (VACUUM, PRAGMA, ANALYZE) and for test harnesses that need to reach an inMemory database, which is otherwise only accessible through this adapter's handle.

Implementation

ResultSet executeRawSQL(String sql, [List<Object?>? parameters]) {
  checkNotClosed();
  return _openDatabase().select(sql, _normalizeParameters(parameters));
}