terraform-provider-postgresql
terraform-provider-postgresql copied to clipboard
Support for `postgresql_columns` data source
Hi there,
It would be great to have support for a postgresql_columns
data source as well as postgresql_databases
.
#374
Thanks
Hi @hroost ,
How do you imagine this data source? Getting all columns of a specific table? Only the columns names?
Thanks
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!