NitroSQLiteQueryResult
TypeScriptSource files: TypeScript
Native result of one SQL statement, delivered as a plain JavaScript object.
The managed API also adds a rows adapter.
Properties
insertId?
readonly optional insertId?: number
Defined in: specs/NitroSQLiteQueryResult.nitro.ts:18
Last insert row ID for this connection. It may refer to an earlier statement.
metadata?
readonly optional metadata?: Record<string, NitroSQLiteQueryColumnMetadata>
Defined in: specs/NitroSQLiteQueryResult.nitro.ts:24
Column metadata keyed by result column name, when available.
results
readonly results: NitroSQLiteQueryRows
Defined in: specs/NitroSQLiteQueryResult.nitro.ts:21
Rows keyed by result column names.
rowBatchCount?
readonly optional rowBatchCount?: number
Defined in: specs/NitroSQLiteQueryResult.nitro.ts:31
Number of row batches sent through the native onRows callback, or zero when none were sent.
Callbacks may arrive after the native promise resolves. Wait for this many batches before
combining them with results. The managed async API waits for them automatically.
An omitted count is treated as zero. Batch tracking requires an updated native build.
rowsAffected
readonly rowsAffected: number
Defined in: specs/NitroSQLiteQueryResult.nitro.ts:16
SQLite's latest row change count. For a read-only query it may reflect an earlier write.