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

path traversal through lists #286

Open
zar3bski opened this issue Jun 8, 2022 · 0 comments
Open

path traversal through lists #286

zar3bski opened this issue Jun 8, 2022 · 0 comments

Comments

@zar3bski
Copy link

zar3bski commented Jun 8, 2022

say I have the following configuration

{
  source = [
    { 
      type = mssql
      port = 1344
      tables {
        une_table360 {
          id = "UniqueID"
          view = "someview"
        }
        une_table {
          upload = false
          view = "someview"
        }
        une_autre_table {
          query = "SELECT TOP 100 FROM une_autre_table" 
          historicity = "delta"
          view = "someview"
        }
      }
    }
  ],
}

How can I access all my tables? I tried

  • conf.get("source.0.tables.une_table360")
  • conf.get("source.[0].tables.une_table360")
  • conf["source"][0]["tables"]["une_table360"]

I get a pyhocon.exceptions.ConfigException: source does not translate to a list which I find surprising

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

No branches or pull requests

1 participant