Support comments on columns (generate down to schema.rs) #4375
SamuelMarks
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Diesel already reads comment on tables and columns and emits them as doc comments in your schema.rs file. You need to configure diesel-cli to actually emit the doc comments, but otherwise this already works. See this guide for details about the relevant setting. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I like to use
struct
s to represent things all the way down to CLIs, OpenAPI [utoipa crate], and more.My current
struct
s are uninformative:(as generated via schema.rs with https://github.com/Wulf/dsync )
How should this be supported? - I'm thinking:
Or maybe:
Or something else? - What do you think?
Happy to contribute a PR. Related: Wulf/dsync#144
Beta Was this translation helpful? Give feedback.
All reactions