DT
Drizzle Teamrushil1o1
Any way to invoke a SQL function?
For ex: lets say I declare a SQL function
CREATE OR REPLACE FUNCTION do_something()
how do i invoke this function using Drizzle's interface?Angelelz•248d ago
db.execute(sql``)
rushil1o1•247d ago
thank you!!
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 PostsHow to include array literals in raw sql?I have an input array used for an order by using the array_position function - rather than passing tMySQL Table SchemasI need to generate the following structure of tables:
`1. Sales
2.Sales
....`
Currently if I use wany way to automatically cast numeric types on retrieval?I have a numeric field in a video table:
```
export const VideoTable = pgTable('videos', {
id: uuiQuery in drizzle doesn't work## Error:
```console
DrizzleError: No fields selected for table "usersToGroups" ("users_groups")
``Cannot read properties of undefined (reading 'referencedTable')Seemingly getting this error out of nowhere. I believe it's related to the relations I defined, but Relational query builder in mysql?I cant find anything about how to implement this. Am I blind or is this impossible?