OptionalauthDatabase dialect to use.
OptionalgetOptional provider for a logical-operation trace id, threaded onto query logs so an AI can follow one operation across many queries/requests. The consuming app populates it (e.g. from an AsyncLocalStorage request/operation context); corelib stays ALS-ignorant.
OptionaljournalOpt-in SQLite journal mode. When set on a local-file url, connect() issues
PRAGMA journal_mode=<value> immediately after opening the connection.
Has no effect on remote libsql (Turso) urls.
Default: undefined (no PRAGMA issued — preserves existing behavior).
OptionallocalOptionalloggerLogger instance (defaults to global logger.child({ section: 'Database' })).
OptionalmaxOperation mode.
OptionalparamOpt-in param logging for the Flight-Recorder query traces. When set, each query's
params are passed through this redactor and logged under params on query: exec.
Unset (the default) means params are NOT logged. Use the exported defaultRedactor
(or a stricter one); the consuming project owns the residual leak risk.
OptionalsynchronousOpt-in SQLite synchronous mode. Issued as PRAGMA synchronous=<value> when
journalMode is also set and the url is a local file.
"NORMAL" cuts per-commit fsync cost (~120ms → ~1-5ms for WAL appends).
Default: undefined (no PRAGMA issued).
OptionaltimeoutQuery timeout in milliseconds.
Database URL (e.g., 'file:local.db' for SQLite, 'postgres://user:pass@host/db' for Postgres).
Configuration for SQLite dialect.