Argument of type 'Database' is not assignable to parameter of type 'D1Database'.

L1lluz10n4/21/2023
I'm trying to use drizzle with cloudflare d1 but getting this error. Any help?
Bbloberenober4/21/2023
you need to use D1 client, and you use better-sqlite3 check D1 docs
L1lluz10n4/21/2023
is it possible to use it with remix.run?
Bbloberenober4/21/2023
I don't see why not
L1lluz10n4/21/2023
how can i access d1 client though
Bbloberenober4/22/2023
check D1 docs it's not related to Drizzle

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
drizzle-zod update schema?is there any plan for `createUpdateSchema` from `drizzle-zod`?How to reproduce a Prisma `include` statement for arrays of related entities without SQL?Hello, I'm trying to translate this SQL query to DrizzleORM; ``` SELECT channels.id, channelsmany-to-one selection as arrayHi, Let's say I have a user table, and the user can have multiple profiles. When I select using joiAlias in from() change? (SQLite)Did something change wrt using aliases in `from()`? Until recently I've been using aliases to affectTable definition has 'any' typeI'm defining all of my tables in an `index.ts` file; but on some tables like `visitor_events` I get CTE query of hierarchical dataI'd like to drizzle-ize this query: ```sql WITH RECURSIVE Child(n) AS ( VALUES('...id') createInsertSchema wrong type (drizzle-zod 0.3.1, sqlite))After upgrading to 0.3.1, all of the fields changed to ZodTypeAnyHow do I get the values of an insert inside a transaction?I have this transaction where I create a project and add variables and a history of those variables.Raw sql`` quoting issueHi, I doing a work around until Drizzle supports generated columns. I have a manual script that addsNuxt3 type errorHello, is there somebody who used Drizzle in Nuxt3 project? I have problem with inheriting types froSyntax error mysql migration using composite primary key```sql --> statement-breakpoint CREATE TABLE `member_to_address` ( `member_id` varchar(32) NOT Nwhen using planetscale, using the `.$with()` and `.with()` clauses causes errorIs it not possible to use `$with()` and `with()` with planetscale? it gives the following error: `DaZod prototype mismatchEven though the Zod object constructor name created by Drizzle is ZodObject, it is not an instanceofunrecognized_keysGetting the following error when running generate:pg ``` ZodError: [ { "code": "unrecognized_kRaw SQL / Postgres stored generated column in schemaIs it possibile to add raw sql, or more specifically stored generated columns to the schema? Trying I think i have found another bugtypescript complaining when there's no overriding