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>;
type CompatDatabase = | DrizzleD1Database<typeof schema> | BetterSQLite3Database<typeof schema>;