Fleuv
Fleuv
DTDrizzle Team
Created by Suji on 9/9/2023 in #help
Get raw query from toSQL
If it might get removed. Then here it is now.
import { PgDialect } from 'drizzle-orm/pg-core';

const pgDialect = new PgDialect();
pgDialect.sqlToQuery(sql`select * from ${usersTable} where ${usersTable.id} = ${12}`);
import { PgDialect } from 'drizzle-orm/pg-core';

const pgDialect = new PgDialect();
pgDialect.sqlToQuery(sql`select * from ${usersTable} where ${usersTable.id} = ${12}`);
8 replies
DTDrizzle Team
Created by Suji on 9/9/2023 in #help
Get raw query from toSQL
Ooh nvm, I got confused because for some reason the page scrolled all the way down when I clicked on your link.
8 replies
DTDrizzle Team
Created by Suji on 9/9/2023 in #help
Get raw query from toSQL
@Angelelz it seems like the section you refer to got removed. Any idea where to find it now? Or is this still even possible?
8 replies