drizzle to log queries #2340
-
Hello folks, I've just moved from prisma to drizzle and in prisma I can see the conversion of my orm/queries into sql by instatiating the prisma client with I'm wondering whether I can do the same with drizzle.config.ts or when instatiating my client. I use Postgres.JS , thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sumitkolhe
May 24, 2024
Replies: 1 comment 2 replies
-
@alexmondaini yes you can do that by setting |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alexmondaini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alexmondaini yes you can do that by setting
logger: true
in the drizzle client. https://orm.drizzle.team/docs/goodies#logging