Skip to main content

SQLitePersistence

@webda/sqlite


Interface: SQLitePersistence

Defined in: sqlite/src/connection.ts:6

Same name and role as MemoryStoreParameters.persistence

Properties​

path​

path: string

Defined in: sqlite/src/connection.ts:10

Database file; relative paths resolve against the application directory


readOnly?​

optional readOnly?: boolean

Defined in: sqlite/src/connection.ts:25

Open the file read-only: writes are rejected with a WebdaError

Default​

false

synchronous?​

optional synchronous?: "OFF" | "NORMAL" | "FULL" | "EXTRA"

Defined in: sqlite/src/connection.ts:20

PRAGMA synchronous

Default​

"NORMAL" with WAL, "FULL" otherwise

wal?​

optional wal?: boolean

Defined in: sqlite/src/connection.ts:15

PRAGMA journal_mode=WAL (concurrent readers across processes)

Default​

true