Skip to content

Commit 1bfbe79

Browse files
committed
Add missing db_type field for fetching databases
1 parent 5942788 commit 1bfbe79

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/data-sources/databases.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Read-Only:
4545
- `cqlsh_url` (String)
4646
- `data_endpoint_url` (String)
4747
- `datacenters` (Map of String)
48+
- `db_type` (String)
4849
- `grafana_url` (String)
4950
- `graphql_url` (String)
5051
- `id` (String)

internal/provider/data_source_databases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ func dataSourceDatabases() *schema.Resource {
129129
Type: schema.TypeString,
130130
},
131131
},
132+
"db_type": {
133+
Description: "Type of Database. This will be 'vector' if the DB supports vector, otherwise 'null'",
134+
Type: schema.TypeString,
135+
Computed: true,
136+
Optional: true,
137+
},
132138
},
133139
},
134140
},

0 commit comments

Comments
 (0)