TLSyncSqliteStatement

See source code
Table of contents

A prepared statement that can be executed multiple times with different bindings.

interface TLSyncSqliteStatement<
  TResult extends TLSqliteRow | void,
  TParams extends TLSqliteInputValue[] = [],
> {}

Methods

all

Execute the statement and return all results as an array

Parameters

NameDescription

bindings

TParams;

Returns

TResult[];

iterate

Execute the statement and iterate over results one at a time

Parameters

NameDescription

bindings

TParams;

Returns

IterableIterator<TResult>;

run

Execute the statement without returning results (for DML)

Parameters

NameDescription

bindings

TParams;

Returns

void;

Prev
TLSyncLog
Next
TLSyncSqliteWrapper