Drizzle as SQL query generator

Hey everyone, is it possible to use drizzle to generate SQL queries as a string? I'm planning to use Drizzle in a desktop app and I have to use different tooling to connect to the database. However, it would be amazing to generate plain queries 🤔
2 Replies
Luxaritas
Luxaritas•2y ago
You can, by using the toSql query builder method You could consider writing your own driver though!
elvinas
elvinasOP•2y ago
Thank you! I’ve also just saw that writing a driver is possible. Will do that as well 🥳

Did you find this page helpful?