epgsql icon indicating copy to clipboard operation
epgsql copied to clipboard

Wishlist: Query logging

Open davidw opened this issue 11 years ago • 0 comments

Hi Will,

I'm using epgsql as part of Chicago Boss, and one thing that I miss from Rails is the ability to log SQL queries, to see exactly what is going on under the hood.

Since the actual queries are run in egpsql, I suppose that's the best place to fish out the actual SQL used.

I'm not quite sure how this might work... perhaps it's as simple as just adding it as an info_msg with the logger, and if people don't want to see it, they can silence those messages. Or a debug flag...

davidw avatar Mar 28 '13 13:03 davidw