executing query builder sql
Dumb question but what's the best means of executing the result of my query builder? https://orm.drizzle.team/docs/goodies#standalone-query-builder
2 Replies
Depends on your driver
The query builder is the result of having drizzle without a driver. You can get the sql statement but it cannot be run unless you run it manually with a driver
Thank you, just found I can use
format
from @planetscale/database
to get my rawSql to pass into sql.raw()