-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tag support for sql #31
Comments
Do you have any examples in existing ORMs? |
@m0sth8 shared some details privately. The idea is to generate SQL statements with embedded comments, so it is possible to track them from RDMS logs back to application code. Sounds like a useful feature. How RDMS support comments:
How it should be implemented is an open question. |
Usually, it's very useful to mark queries with some tags.
This code
db.Tag("disable_user:%s", userId).Update(user)
might produce the next queryUPDATE /* disable_user:10 */ ...
The text was updated successfully, but these errors were encountered: