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

Support for postgresql_columns data source #410

Open
hroost opened this issue Feb 19, 2024 · 2 comments
Open

Support for postgresql_columns data source #410

hroost opened this issue Feb 19, 2024 · 2 comments
Labels

Comments

@hroost
Copy link

hroost commented Feb 19, 2024

Hi there,

It would be great to have support for a postgresql_columns data source as well as postgresql_databases.

#374

Thanks

@cyrilgdn
Copy link
Owner

Hi @hroost ,

How do you imagine this data source? Getting all columns of a specific table? Only the columns names?

Thanks

@cyrilgdn cyrilgdn added waiting-response Further information is requested feature labels Feb 25, 2024
@hroost
Copy link
Author

hroost commented Mar 7, 2024

Hi @cyrilgdn ,

I suggest a data source that returns column lists for requested table:

data "postgresql_columns" "my_columns" {
  database = "my_database"
  schema = "my_schema"
  table = "my_table"
}

Result:
[column1, column2, ... columnN]

Sorry for delay and thanks for this module!

@github-actions github-actions bot removed the waiting-response Further information is requested label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants