Skip to content

Commit

Permalink
Add missing db_type field for fetching databases (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 authored Sep 19, 2024
1 parent 5942788 commit f103fca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Read-Only:
- `cqlsh_url` (String)
- `data_endpoint_url` (String)
- `datacenters` (Map of String)
- `db_type` (String)
- `grafana_url` (String)
- `graphql_url` (String)
- `id` (String)
Expand Down
6 changes: 6 additions & 0 deletions internal/provider/data_source_databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ func dataSourceDatabases() *schema.Resource {
Type: schema.TypeString,
},
},
"db_type": {
Description: "Type of Database. This will be 'vector' if the DB supports vector, otherwise 'null'",
Type: schema.TypeString,
Computed: true,
Optional: true,
},
},
},
},
Expand Down

0 comments on commit f103fca

Please sign in to comment.