Is it possible to use Drizzle with MySQL without a connection? I just want to generate SQL strings.

I'm currently using the mysql2 adapter (but open to changing to any mysql adapter) with a fake connection, because I only want to use drizzle to generate SQL queries without sending them. However, drizzle tries to create a connection even when I'm not sending a query, causing my app to fail at runtime.
2 Replies
et
etOP9mo ago
I seem to have gotten what I wanted using the planetscale mysql connection instead.
Eli
Eli6mo ago
for others that might see this (or find the link from google) there is const qb = new QueryBuilder() which can be used I guess
Want results from more Discord servers?
Add your server