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

DB records into attribute array #33

Open
gerliczky opened this issue Jul 8, 2020 · 0 comments
Open

DB records into attribute array #33

gerliczky opened this issue Jul 8, 2020 · 0 comments
Labels
feature request New feature request help wanted Extra attention is needed

Comments

@gerliczky
Copy link

gerliczky commented Jul 8, 2020

It would be nice, when the content of a database table could be selected into an array of arrtibutes in a variable.
It would be also useful to add an optional db_url parameter to be able to use external database.

Like:
DB:

colA colB
cell1 cell2
cell3 cell4

Code:

var:
  db_table_to_attribute_array:
    db_url: db_url
    query: select colA, colB from table

Result:

data:
- colA: cell1
  colB: cell2
- colA: cell3
  colB: cell4
@snarky-snark snarky-snark added feature request New feature request help wanted Extra attention is needed labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants