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