-
Notifications
You must be signed in to change notification settings - Fork 3
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 support for documentation #4
Comments
comments are hard. i tried recently to add comment support to the ast and failed. i don't remember why it was so hard, but one property that is challenging is that they can appear anywhere and i'd like the format command to be able to preserve them, so like every ast node that it parses could potentially need comments attached, which is a big undertaking. |
I guess the primary thing we want is comments for tables and fields and indexes... maybe something like:
|
that's much easier to do |
There are some fields that have multiline comments, so not sure what to do about those... but potentially could fold it into a single string. e.g.
or
|
It's difficult for the data team to figure out what each field means. Instead of needing to manually annotate, let's add comments directly to the database. That way tools should be able to read out that information.
https://www.postgresql.org/docs/current/sql-comment.html
The text was updated successfully, but these errors were encountered: