Skip to content

SqliteStoreDatabaseOptions

Defined in: store/sqlite.ts:59

A better-sqlite3 connection the caller owns: close() leaves it open, and its pragmas are left as they are. WAL mode is recommended (db.pragma('journal_mode = WAL')); synchronous = NORMAL with WAL trades the last transactions on a power loss (not on a process crash) for fewer fsyncs.

database: Database

Defined in: store/sqlite.ts:61

An open better-sqlite3 connection (new Database(file)).


optional tablePrefix?: string

Defined in: store/sqlite.ts:40

Prefix for the SQL table names (<prefix>entries, <prefix>snapshots, <prefix>sessions, <prefix>open_tables, <prefix>meta), so several apps can share one database. Letters, digits and underscores only. Default 'shoehive_'.

SqliteStoreBaseOptions.tablePrefix