Skip to content

Commit

Permalink
fix the project's data source
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
  • Loading branch information
kislerdm committed Nov 19, 2024
1 parent 99075f9 commit 96658d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion internal/provider/data_source_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func dataSourceProject() *schema.Resource {
return &schema.Resource{
Description: `Fetch Project.`,
SchemaVersion: 2,
SchemaVersion: 3,
ReadContext: dataSourceProjectRead,
Schema: map[string]*schema.Schema{
"id": {
Expand All @@ -35,6 +35,11 @@ func dataSourceProject() *schema.Resource {
Computed: true,
Description: "Default database host.",
},
"database_host_pooler": {
Type: schema.TypeString,
Computed: true,
Description: "Default endpoint host via pooler.",
},
"database_name": {
Type: schema.TypeString,
Computed: true,
Expand All @@ -57,6 +62,12 @@ func dataSourceProject() *schema.Resource {
Sensitive: true,
Description: "Default connection uri. **Note** that it contains access credentials.",
},
"connection_uri_pooler": {
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Description: "Default connection uri with the traffic via pooler. **Note** that it contains access credentials.",
},
},
}
}
Expand Down

0 comments on commit 96658d4

Please sign in to comment.