Add format.tableGroups
option for table grouping
#436
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am sorry to put out a series of PRs and I hope you will take a look at them when you have time 🙇♂️
About
For huge databases, the list of tables in the generated
README.md
is difficult to understand, so I implemented an option to group tables by user-specified groups.resolve #311
Description
In the process of generating
README.md
withmakeSchemaTemplateData()
inoutput/md/md.go
, tables are grouped in groups specified by the user and passed to the template.Also, in the template, when a group of tables is provided, the template is implemented to display a list of tables by group.
In addition, I tried to output ER diagrams between tables within each group.
(In
schema.go
, we implemented a method calledNewSchemaForTableGroup()
that generates a newSchema
when a list of tables is passed to it, which is then passed to the process that generates the ER diagram.)Consultation matter
README.md
formatdetails
andsummary
.