This repository holds Query Doctor's SQLCommenter integrations. Each one appends a SQLCommenter comment to the queries an ORM or driver sends, so Query Doctor can map every query back to the code that issued it. The repository started as a fork of google/sqlcommenter.
Pull requests are welcome, both for fixes to an existing integration and for new ones.
Writing your own integration documents the comment format and the keys Query Doctor reads.
- Put the integration in its language's folder, next to the existing ones: for example
nodejs/sqlcommenter-nodejs/packages/sqlcommenter-<orm>ordotnet/sqlcommenter-<orm>. - Write tests that run a query through the ORM or driver and check the comment at the end of the SQL it sends.
- Add a workflow in
.github/workflowsthat runs those tests on pull requests that touch the integration's folder.nodejs-drizzle-tests.yamlis a short one to copy. - Add a README with installation and setup steps, and link it from the list in the root README.
Contributions are accepted under the Apache License 2.0, the licence the rest of the repository uses. No contributor licence agreement is needed.