martin icon indicating copy to clipboard operation
martin copied to clipboard

martin config expose only specific schema

Open Captain-Oski opened this issue 5 years ago • 3 comments

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

Captain-Oski avatar Dec 10 '19 17:12 Captain-Oski

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?

stepankuzmin avatar Dec 10 '19 18:12 stepankuzmin

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 ...

Captain-Oski avatar Dec 10 '19 18:12 Captain-Oski

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!

stepankuzmin avatar Dec 11 '19 06:12 stepankuzmin

The #380 makes this possible, but would require us to think how to add it to configuration

nyurik avatar Dec 02 '22 03:12 nyurik

Implemented in #510, pending a few more PR megres

nyurik avatar Dec 09 '22 02:12 nyurik

@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

nyurik avatar Dec 12 '22 01:12 nyurik

added in #546

nyurik avatar Jan 03 '23 16:01 nyurik