Re:Show HN: Visualize Your Rails App to ER Diagram Automatic...
by danmaz74 on Monday October 29, 2018 @06:41PM
(#18332294)
Rails finds the fields from the dB and turns them into properties automatically... Isn't this exactly what you were asking?
[ Parent
| on HN ]
Re:Show HN: Visualize Your Rails App to ER Diagram Automatic...
by tabtab on Monday October 29, 2018 @08:57PM
(#18333140)
Do you mean it generates code? That's still a "DRY" violation. And if you mean it only looks at the RDBMS table, then it has insufficient info. Describing a field well often requires more info/meta-data than what a typical RDBMS schema has.
Here's a list of typical attributes: db-field-name, type, display-name, form-sequence, list-sequence, relation-type (primary key, foreign key, etc.), reference-table, min-length, max-length, default-value, help-tip, bootstrap-column-width, grouping-filters/codes, search-form-type, and other optional do-dads.
Re:Show HN: Visualize Your Rails App to ER Diagram Automatic...
by danmaz74 on Tuesday October 30, 2018 @05:24AM
(#18334981)
It doesn't generate code, it "just" allows you to load and save fields by checking the tables structures. You still need to add code manually for relationships and some specific features.
Regarding the attributes you listed, looks to me like those are very CRUD-oriented. Many fields don't have a direct representation in the UI at all...
Re:Show HN: Visualize Your Rails App to ER Diagram Automatic...
by tabtab on Tuesday October 30, 2018 @12:47PM
(#18338629)
Example? One can pick and choose what fields are included in what using WHERE clause filters. And yes, not everything is necessarily displayed, but that won't "hurt" my suggestion.