Add Basic go-pg SQL Comments #1914
Replies: 1 comment
-
I know this conversation has been stale for nearly a year, but just in case anybody else stumbles upon this looking for a workaround, I managed to come up with the following: Basically, I'm adding a zero cost, or as close to zero cost as possible, arbitrary clause to my queries in order to give me a "spot" to inject my comments: For selects, updates & deletes, you can add a For inserts, the best I can come up with is using the
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Looking for the final produced query to include some basic SQL comments.
SELECT * FROM blah /* table: blah, queryName: getAllBlahs */
This is used with several performance tools to track source of queries. Is go-pg capable of this?
Beta Was this translation helpful? Give feedback.
All reactions