| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@DerekTBrown please open up an issue or a discussion with your feature request before submitting any code. Thanks. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #4489
Problem Statement
Database monitoring and tracing tools (ex. Datadog) rely on metadata comments to trace SQL statements. I am looking for an easy way to inject these into SQLC-generated statements, improving traceability and auditability of SQL queries.
Proposal
This adds a query_comments config block that prepends generated SQL with structured metadata comments in either sqlcommenter or marginalia format based on the tags specified in the SQLC comment:
All generated SQL statements will then contain the tracking comment: