跳到主要内容

executeOo1Helper()

function executeOo1Helper(
clientName,
db,
sql,
bindings?): SqliteSuccessResult;

Defined in: packages/rxdb-adapter-sqlite-core/src/execute_oo1_helper.ts:66

Shared SQL execution helper for any oo1.DB-shaped runtime.

  • Uses the prepared-statement fast path for single-statement SELECT / EXPLAIN / ... RETURNING ... when the runtime exposes prepare().
  • Falls back to db.exec() for everything else.

Both @sqlite.org/sqlite-wasm and @sqliteai/sqlite-wasm expose a synchronous oo1.DB.exec() that handles multi-statement SQL internally, so we collect resultRows and columnNames directly from it.

Parameters

ParameterType
clientNamestring
dbOo1Database
sqlstring
bindings?SQLiteCompatibleType[]

Returns

SqliteSuccessResult