Refactor how to create schemas without dropping schemas #1440
Unanswered
christoph-ding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a question about how to change how schemas are defined by our provider.
Currently, we have 2 "sets" of schemas, and they are hardcoded in a
local
object (for the purposes of this example, we only care about thekeys
, which is the schema name, and not itsvalues
.Let's call our sets
A
andB
, and specific schemas have "schema" in their name:We have decided this will scale poorly, and would like to shift to something programmatic:
The problem with this approach is that if we remove any schemas from the local list (for example,
A_schema_one
), it will destroy that schema, despite it being created programmatically later in the file.I wanted to ask if anyone had a suggestion on how to proceed / solve this problem.
Beta Was this translation helpful? Give feedback.
All reactions