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

Allow listing columns using utils.select_columns #20

Closed
wants to merge 2 commits into from
Closed

Allow listing columns using utils.select_columns #20

wants to merge 2 commits into from

Conversation

cymed
Copy link
Contributor

@cymed cymed commented Dec 7, 2023

Introducing 2 new variables to utils-py's select_columns

  • prepend_as
  • alias_separator

by allowing prepend_as to be False and the alias_separator being something else than '.', it is now possible to list columns dynamically. Use case see teksi/wastewater#36

@cymed cymed changed the title Allow listing columns using select columns Allow listing columns using utils.select_columns Dec 7, 2023
@3nids 3nids closed this Dec 7, 2023
@3nids 3nids reopened this Dec 7, 2023
@3nids
Copy link
Member

3nids commented Dec 7, 2023

What do you mean by listing columns dynamically?

@cymed
Copy link
Contributor Author

cymed commented Dec 7, 2023

Create a comma separated list of all columns

@3nids
Copy link
Member

3nids commented Dec 7, 2023

why not using pirogue.information_schema.columns directly? that would avoid tweaking select columns, no?

@cymed cymed closed this Dec 7, 2023
@cymed cymed deleted the allow-listing-columns-using-select_columns branch December 7, 2023 12:45
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

Successfully merging this pull request may close these issues.

2 participants