Typescript type for Cloudflare D1 and better-sqlite

Is it possible to define queries on database type such that queries work with both the drivers? I see some typescript errors when I try and define the database type as type CompatDatabase = | DrizzleD1Database<typeof schema> | BetterSQLite3Database<typeof schema>;
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server