© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
Adamgreg

Prepare raw sql query (Postgres)

Hi, I need to do a recursive query, so I think I need to use the magic sql operator to build it. Is it possible to make a prepared statement this way? I haven't been able to find a way, but something like
db.prepare(sql`...`)
db.prepare(sql`...`)
would make sense to me.
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Executing raw Sql query
Drizzle TeamDTDrizzle Team / help
2y ago
Raw SQL query (`.execute()` doesn't exist)
Drizzle TeamDTDrizzle Team / help
2y ago
Disable postgres log when executing raw sql queries
Drizzle TeamDTDrizzle Team / help
3y ago
Raw SQL / Postgres stored generated column in schema
Drizzle TeamDTDrizzle Team / help
3y ago