SqliteStorageOptions
Defined in: src/storage/sqlite.ts:21
Options for createSqliteStorage.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
database? |
Database |
An existing bun:sqlite Database to use instead of opening one. Never closed. |
src/storage/sqlite.ts:31 |
path? |
string |
Database file path. Default ":memory:". Ignored when database is given. |
src/storage/sqlite.ts:29 |
subpath? |
string |
The import path to name in error messages (a missing peer, a missing client/url…), e.g. "@xtandard/webhooks/storage/sqlite" when a product re-exports this driver. Default: the kit subpath. |
src/storage/sqlite.ts:27 |
table? |
string |
Table name (default "xtandard_kv"; products pass theirs). Validated as a safe identifier. |
src/storage/sqlite.ts:33 |