DT
Drizzle Teamstarz0r
Generate classes/interfaces from existing schemas?
Messing around with drizzle, and I was wondering if there was any way to generate a class or interface derived from an existing schema? My database is currently managed out-of-band (not by drizzle), by another service, so writing schemas by hand again, is not really preferred. I looked around and couldn't find anything related to doing such a task. This would really help a lot when using drizzle.
PGT•356d ago
There's an introspect command: https://orm.drizzle.team/kit-docs/commands#introspect--pull
List of commands – DrizzleORM
Drizzle ORM | %s
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 PostsRelation Query - Get likes in postPlaying around with relational queries and I'm not quite getting how I'd retrieve the count of likesRelation query `extras` needs access to `with`I have a mysql table with two relations to another table. (one is for source values, one is for optiOptional filter param, coalesce to true?Is there a way to achieve this coalescing technique, but in valid drizzle sql?
```ts
const filterByRelational query, Planetscale throws: `ResourceExhausted desc = Out of sort memory`SOLUTION: the problem was that I had a json column storing a massive value on each row.
`code = Re