martin
martin copied to clipboard
martin config expose only specific schema
Hello ! Thank you for the superbe work !
I am wondering if we could expose only a entire schema instead of exposing one table at a time ?
Thank you
Hi @Captain-Oski! Thanks for the idea, but I'm not sure how do you want it to be. Could you please provide an example for this?
Thank you for replying so quickly :
it could be something like this alongside the config.yaml:
schema_sources:
public
mySchema
myOtherSchema
So that it would only targets all the tables and functions into a specific schema.
I founding it extremely verbose and difficult to maintain an config file when you need multiple tables and functions but need to hide from the public numerous tables.
I guess one could migrate the needed tables and functions into a new database instance but ...
I see the problem with config verbosity, but schema sources don't fit very well yet. I'll think about how to simplify config to expose schemas, thanks!
The #380 makes this possible, but would require us to think how to add it to configuration
Implemented in #510, pending a few more PR megres
@stepankuzmin and I at the last minute realized that we don't have a clear agreement on how to specify schema configuration list for this feature. See #512 -- can use your feedback on the best way to configure, as well as possible usecases you can think of
added in #546