+5
.github/workflows/test.yml
+5
.github/workflows/test.yml
+2
-2
backend/database/db.ts
+2
-2
backend/database/db.ts
···
14
14
authToken: Deno.env.get("TURSO_AUTH_TOKEN"),
15
15
});
16
16
17
-
// Wrap the client to match the ExecutableDriver interface expected by valTownAdapter
18
-
// The libSQL client returns Row objects, but valTownAdapter expects { rows: unknown[][] }
17
+
// Wrap the client to provide a consistent interface
18
+
// The libSQL client returns Row objects, we convert to arrays for compatibility
19
19
export const rawDb = {
20
20
execute: async (
21
21
query: { sql: string; args: unknown[] },