@devries-cameron20 / t3code Mirror · read-only / commits / 5cbb6ea728
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 17:15 UTC

wal

Julius Marminge committed Feb 24, 2026 at 15:27 UTC 5cbb6ea728903f4a9aa25441f663fe65e456f2c9
2 files changed +1 -11
apps/server/src/persistence/Layers/Sqlite.ts
+1 -5
@@ -5,7 +5,6 @@ import { runMigrations } from "../Migrations.ts";
5
6 type RuntimeSqliteLayerConfig = {
7 readonly filename: string;
8 - readonly disableWAL?: boolean | undefined;
8 };
9
10 type Loader = {
@@ -46,8 +45,5 @@ export const makeSqlitePersistenceLive = (dbPath: string) =>
45
46 export const SqlitePersistenceMemory = Layer.provideMerge(
47 setup,
49 - makeRuntimeSqliteLayer({
50 - filename: ":memory:",
51 - disableWAL: true,
52 - }),
48 + makeRuntimeSqliteLayer({ filename: ":memory:" }),
49 );
apps/server/src/persistence/NodeSqliteClient.ts
-6
@@ -35,7 +35,6 @@ export interface SqliteClientConfig {
35 readonly allowExtension?: boolean | undefined;
36 readonly prepareCacheSize?: number | undefined;
37 readonly prepareCacheTTL?: Duration.Input | undefined;
38 - readonly disableWAL?: boolean | undefined;
38 readonly spanAttributes?: Record<string, unknown> | undefined;
39 readonly transformResultNames?: ((str: string) => string) | undefined;
40 readonly transformQueryNames?: ((str: string) => string) | undefined;
@@ -64,10 +63,6 @@ const makeWithDatabase = (
63 Effect.sync(() => db.close()),
64 );
65
67 - if (options.disableWAL !== true) {
68 - db.exec("PRAGMA journal_mode = WAL");
69 - }
70 -
66 const statementReaderCache = new WeakMap<StatementSync, boolean>();
67 const hasRows = (statement: StatementSync): boolean => {
68 const cached = statementReaderCache.get(statement);
@@ -203,7 +198,6 @@ const makeMemory = (
198 ...config,
199 filename: ":memory:",
200 readonly: false,
206 - disableWAL: config.disableWAL ?? true,
201 },
202 () => {
203 const database = new DatabaseSync(":memory:", {