aqueduct icon indicating copy to clipboard operation
aqueduct copied to clipboard

Proposal: Add property or method on Query object for getting raw SQL code

Open bambinoua opened this issue 4 years ago • 3 comments

For debug it is good to have possibility to get the raw SQL code from instance of Query<T>. It can be added to Query class or inside reduce property.

bambinoua avatar Jun 10 '20 14:06 bambinoua

You can do this by checking the query in the postgresql logs.

Reductions avatar Jun 10 '20 14:06 Reductions

Yes. I know but it would be good to have access to the SQL for any case. Maybe for some analysis or cacheing etc.

bambinoua avatar Jun 10 '20 14:06 bambinoua

The problem is that for every action on Query you need to make an alternative that only creates the SQL statement instead of executing it.

You can give it a try for a contribution it should not be that hard to do.

Reductions avatar Jun 10 '20 14:06 Reductions