How to create the type of the client with the schema
I want to create a type for the drizzle client with my schema. What I'm doing now is this:
but I want to be able to do something like:
Is there a way to do that?
5 Replies
TBH what you're doing is perfectly fine
Are you using neon serverles?
i am, but am shortly switching to aws aurora serverless v2 + rds data api
The I would keep it as is, that way, when you migrate, the type will stay in sync
BTW, are you exporting your client as is?
So when you need it you call
client()
?no, im exporting like this
Ok, cool