TLSyncSqliteWrapper

See source code
Table of contents

Interface for SQLite storage with prepare, exec and transaction capabilities.

interface TLSyncSqliteWrapper {}

Properties

config

readonlyoptional

Optional configuration for table names. If not provided, defaults are used.

readonly config?: TLSyncSqliteWrapperConfig;

Methods

exec

Execute raw SQL (for DDL, multi-statement scripts)

Parameters

NameDescription

sql

string;

Returns

void;

prepare

Prepare a SQL statement for execution

Parameters

NameDescription

sql

string;

Returns

TLSyncSqliteStatement<TResult, TParams>;

transaction

Execute a callback within a transaction

Parameters

NameDescription

callback

() => T;

Returns

T;

Prev
TLSyncSqliteStatement
Next
TLSyncSqliteWrapperConfig