-
Notifications
You must be signed in to change notification settings - Fork 888
Add COMMENT ON support for views #2241
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
Comments
@mdigger What exactly would you like to change about how sqlc currently handles this? Here's what the code outputs today https://play.sqlc.dev/p/502f584a2eda264a3f28e8e54c206bfe29306d873d8bfdce1c8a91622d0a7f0d |
// Test view
type TestView struct {
ID int64
Name string
Bio sql.NullString
} How is it done for tables... :) |
Please take a look at the link I shared, as sqlc does exactly this. |
https://play.sqlc.dev/p/47cebd466b443ee4bb73a1986990c5a6a30780c2b2b8903d27e3e51624bbd8df // Author table comment
type Author struct {...}
type TestView struct {...} There is no comment on structure |
Indeed there isn't! |
* feat: add supporting COMMENT ON VIEW close #2241 * test: Add tests for COMMENT ON VIEW --------- Co-authored-by: Kyle Conroy <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
What do you want to change?
Use comment to generate model by
view
.The generated struct should have a comment before it like so:
No comment currently shows up.
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered: