Skip to content
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 command switch to include/exclude schemas for which to generate documentation #459

Open
zam6ak opened this issue Mar 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@zam6ak
Copy link

zam6ak commented Mar 25, 2023

Hi

In large DBs it is often desirable to specify which schemas to include (or exclude) when generating documentation.
You could have several apps that share DB but use separate schemas.
In this case each application could use this switch to produce docs that are relevant only for that app.

Additionally, with this option you could also re-run the tool with different output folders specifying different schema each time if needed.

Thanks
Z

@zam6ak zam6ak added the enhancement New feature or request label Mar 25, 2023
@k1LoW
Copy link
Owner

k1LoW commented Apr 4, 2023

Hi @zam6ak

Have you tried the --include/--exclude option?

@zam6ak
Copy link
Author

zam6ak commented Apr 4, 2023

@k1LoW

Have you tried the --include/--exclude option?

I tried running updated container 1.64.1
It took me couple of attempts to figure out the format, but following seems to work:
--include "public.*" (to include all tables in public schema)
--include "public.*,myapp1.*" (to include all tables in schemas: public and myapp1)
--exclude "extensions.*" (to exclude all tables from extensions schema)

When I tried tbl doc --help this is what it says for --include/--exclude

--exclude strings    tables to exclude
--include strings    tables to include

It may be beneficial to update docs/usage on how to filter entire schemas (wildcard supported?)

Thanks for including this feature!
Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants