(sql: string, _params: unknown[] = [])
| 63 | function createSyncBackedExecutor(store: Map<string, unknown[]>): AsyncSqlExecutor { |
| 64 | return { |
| 65 | all<T>(sql: string, _params: unknown[] = []): Promise<T[]> { |
| 66 | return Promise.resolve((store.get(extractQueryKey(sql)) ?? []) as T[]) |
| 67 | }, |
| 68 | get<T>(sql: string, _params: unknown[] = []): Promise<T | undefined> { |
| 69 | const rows = (store.get(extractQueryKey(sql)) ?? []) as T[] |
| 70 | return Promise.resolve(rows[0]) |
nothing calls this directly
no test coverage detected