DT
Drizzle Team•3w ago
MAST

Missing schema from generated SQL when using `.toSQL()` on a query style SQL query.

I'm trying to get use .toSQL() on a query (db.query.someTable) but it doesn't include the schema for the target tables. I want to use the .toSQL() to then pass the SQL and params to electric-sql to sync things I'm running drizzle on the browser. I didn't find the PGLite driver tag to use.
3 Replies
vae
vae•5d ago
Did you manage to find a fix for this?
MAST
MASTOP•5d ago
Nope 😞 Switched to normal queries for now.
vae
vae•5d ago
Eek 😦 😔

Did you find this page helpful?