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

Split config discovery and configuration logic #23

Open
ubombi opened this issue Nov 6, 2022 · 0 comments
Open

Split config discovery and configuration logic #23

ubombi opened this issue Nov 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ubombi
Copy link
Member

ubombi commented Nov 6, 2022

Make configuration pluggable and implement:

  • Basic mandatory schema discovery

Optional:

  • Autodiscovery based on schema, PKs, FKs
  • Conftags based config
  • External config

Each config applies changes on top of previous one in same order as passed to client.

E.G:

posgtres.New(
    discovery.WithSchema(),               // parse existing PKs, FKs, Indecies. Constraints 
    discovery.WithConftags("prefix_"),    // Apply conftags changes   E.G: skip some fields
    discovery.WithFileconfig(yamlfile),   // Apply additional external config, E.G: change index name
)
@ubombi ubombi added the enhancement New feature or request label Nov 6, 2022
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

1 participant