Closed rizen closed 4 months ago
add sql debugging to the logs, either via:
https://orm.drizzle.team/docs/goodies#logging
or
use .toSQL() method:
const query = db.select().from(user).toSQL(); console.log(query);
{ sql: 'select "id", "email", "emailVerified", "username", "name", "image", "createdAt" from "user"', params: [] }
add sql debugging to the logs, either via:
https://orm.drizzle.team/docs/goodies#logging
or
use .toSQL() method: