| ... | ... | @@ -35,7 +35,6 @@ export interface SqliteClientConfig { |
| 35 | 35 | readonly allowExtension?: boolean | undefined; |
| 36 | 36 | readonly prepareCacheSize?: number | undefined; |
| 37 | 37 | readonly prepareCacheTTL?: Duration.Input | undefined; |
| 38 | | readonly disableWAL?: boolean | undefined; |
| 39 | 38 | readonly spanAttributes?: Record<string, unknown> | undefined; |
| 40 | 39 | readonly transformResultNames?: ((str: string) => string) | undefined; |
| 41 | 40 | readonly transformQueryNames?: ((str: string) => string) | undefined; |
| ... | ... | @@ -64,10 +63,6 @@ const makeWithDatabase = ( |
| 64 | 63 | Effect.sync(() => db.close()), |
| 65 | 64 | ); |
| 66 | 65 | |
| 67 | | if (options.disableWAL !== true) { |
| 68 | | db.exec("PRAGMA journal_mode = WAL"); |
| 69 | | } |
| 70 | | |
| 71 | 66 | const statementReaderCache = new WeakMap<StatementSync, boolean>(); |
| 72 | 67 | const hasRows = (statement: StatementSync): boolean => { |
| 73 | 68 | const cached = statementReaderCache.get(statement); |
| ... | ... | @@ -203,7 +198,6 @@ const makeMemory = ( |
| 203 | 198 | ...config, |
| 204 | 199 | filename: ":memory:", |
| 205 | 200 | readonly: false, |
| 206 | | disableWAL: config.disableWAL ?? true, |
| 207 | 201 | }, |
| 208 | 202 | () => { |
| 209 | 203 | const database = new DatabaseSync(":memory:", { |