DT
Drizzle TeamBaron Von Enablestein
pgEnum conversion not working as expected
I have the following pgEnum defined:
(Yes, there'll be more types later). My schema is:
However when I do:
I get the error
ERROR: column \"type\" is of type approval_request_type but expression is of type text; Hint: You will need to rewrite or cast the expression.
How can I solve this? My ApprovalRequestType enum is also mapped to 'CREDIT_NOTE'
Baron Von Enablestein•18d ago
Hmmm, if I look at the full stack trace this might have to do with me using the RDS Data API:
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.4KMembers
View on DiscordWant results from more Discord servers?
More PostsFiltering a jsonb with the shape Array<{id:string,name:string}>Hi. I have a query that returns all the posts with it's categories like this,
```typescript
type PosCan't update table columnI update the column's name in my schema, but it don't update when I check in Drizzle Studio.
AnyoneRunning an insert script, and I'm getting some "warnings".How do you access the warning details or what rows they relate to?drizzle-orm/libsql in cf workers causes type conflictsglobal fetch returns node Response type instead of Response type from @cloudflare/workers-types when