You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sqlite - feat: Add warning for WAL mode with in-memory SQLite databases (#1832)
* sqlite - feat: Add warning logging for WAL mode on in-memory databases
When WAL mode is requested for an in-memory database (:memory: or empty
string), the code now logs a warning message to inform developers that
the option will be ignored, rather than silently passing the PRAGMA
to SQLite which would silently ignore it.
https://claude.ai/code/session_01ESQBgre2YMC66TdTca7YdG
* Update test.ts
---------
Co-authored-by: Claude <noreply@anthropic.com>
-`table` - The table name to use for storage (default: `'keyv'`)
49
49
-`busyTimeout` - Sets a busy handler that sleeps for a specified amount of time when a table is locked
50
50
-`wal` - Enable [Write-Ahead Logging](https://sqlite.org/wal.html) mode for better concurrency and performance (default: `false`)
51
-
-**Note:** WAL mode is not supported for in-memory databases (`:memory:`). SQLite will silently ignore the WAL mode request and remain in "memory" journal mode.
51
+
-**Note:** WAL mode is not supported for in-memory databases (`:memory:`). A warning will be logged and the option will be ignored.
52
52
-`keySize` - The maximum key size in bytes (default: `255`, max: `65535`)
53
53
54
54
You can also use a helper function to create `Keyv` with `KeyvSqlite` store.
0 commit comments