-
-
Notifications
You must be signed in to change notification settings - Fork 722
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
[FEATURE]: Support Comments for Column definitions and introspections #1840
Comments
Another use case... Drizzle-zod would need to read these fields, too, for that to work. First this though 🙏 |
Very much looking forward to this feature! |
Yeah, I'd love to see it too. For self-documenting the code, it's great. @AndriiSherman maybe you could show me which files to modify so that I can make a PR? |
Postgre also has Comments, although it has slightly different syntax from mysql. It would be lovely to see this feature! |
Not sure about MySQL but I believe postgres also allows you to add comments to a bunch of different objects, not just columns. Adding comments for tables and relationships would also be quite handy I think. |
Describe what you want
MySQL has a feature where you can add comments to the column definitions. This is useful when exploring the database from a Database manager as the comment adds information for what the column is for, if the name is not suffitiencly explicit.
(screenshot of phpMyAdmin, a mySQL db manager as an example of how comments are displayed)
I think is a good feature as it allows the dabase to have better documentation. I imagine it as follows:
The following code
would generate the following table
To update a column, alter statements allow to add comments as described here.
Also, for the introspect tool, current comments can be read as explained here.
PS: sorry if this was proposed before, I did not find any issue relating column comments
Thanks!
The text was updated successfully, but these errors were encountered: