Skip to content

sqliteConnection

function sqliteConnection(
options,
ddl,
subpath?
): SqliteConnection;

Defined in: src/storage/sqlite.ts:54

Build a SqliteConnection that opens path (or borrows database) and runs ddl once. Products add their own tables by passing extra statements.

Parameter Type Default value
options Pick<SqliteStorageOptions, "path" | "database"> undefined
ddl string[] undefined
subpath? string SUBPATH

SqliteConnection