Skip to content

Commit 8e51024

Browse files
committed
[WIP] Source versioning
1 parent 76012d6 commit 8e51024

File tree

79 files changed

+9144
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+9144
-70
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "materialize_source_reference Data Source - terraform-provider-materialize"
4+
subcategory: ""
5+
description: |-
6+
The materialize_source_reference data source retrieves a list of available upstream references for a given Materialize source. These references represent potential tables that can be created based on the source, but they do not necessarily indicate references the source is already ingesting. This allows users to see all upstream data that could be materialized into tables.
7+
---
8+
9+
# materialize_source_reference (Data Source)
10+
11+
The `materialize_source_reference` data source retrieves a list of *available* upstream references for a given Materialize source. These references represent potential tables that can be created based on the source, but they do not necessarily indicate references the source is already ingesting. This allows users to see all upstream data that could be materialized into tables.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "materialize_source_reference" "source_references" {
17+
source_id = materialize_source_mysql.test.id
18+
}
19+
20+
output "source_references" {
21+
value = data.materialize_source_reference.my_source_references.references
22+
}
23+
```
24+
25+
<!-- schema generated by tfplugindocs -->
26+
## Schema
27+
28+
### Required
29+
30+
- `source_id` (String) The ID of the source to get references for
31+
32+
### Optional
33+
34+
- `region` (String) The region in which the resource is located.
35+
36+
### Read-Only
37+
38+
- `id` (String) The ID of this resource.
39+
- `references` (List of Object) The source references (see [below for nested schema](#nestedatt--references))
40+
41+
<a id="nestedatt--references"></a>
42+
### Nested Schema for `references`
43+
44+
Read-Only:
45+
46+
- `columns` (List of String)
47+
- `name` (String)
48+
- `namespace` (String)
49+
- `source_database_name` (String)
50+
- `source_name` (String)
51+
- `source_schema_name` (String)
52+
- `source_type` (String)
53+
- `updated_at` (String)

docs/data-sources/source_table.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "materialize_source_table Data Source - terraform-provider-materialize"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# materialize_source_table (Data Source)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "materialize_source_table" "all" {}
17+
18+
data "materialize_source_table" "materialize" {
19+
database_name = "materialize"
20+
}
21+
22+
data "materialize_source_table" "materialize_schema" {
23+
database_name = "materialize"
24+
schema_name = "schema"
25+
}
26+
```
27+
28+
<!-- schema generated by tfplugindocs -->
29+
## Schema
30+
31+
### Optional
32+
33+
- `database_name` (String) Limit tables to a specific database
34+
- `region` (String) The region in which the resource is located.
35+
- `schema_name` (String) Limit tables to a specific schema within a specific database
36+
37+
### Read-Only
38+
39+
- `id` (String) The ID of this resource.
40+
- `tables` (List of Object) The source tables in the account (see [below for nested schema](#nestedatt--tables))
41+
42+
<a id="nestedatt--tables"></a>
43+
### Nested Schema for `tables`
44+
45+
Read-Only:
46+
47+
- `comment` (String)
48+
- `database_name` (String)
49+
- `id` (String)
50+
- `name` (String)
51+
- `owner_name` (String)
52+
- `schema_name` (String)
53+
- `source` (List of Object) (see [below for nested schema](#nestedobjatt--tables--source))
54+
- `source_type` (String)
55+
- `upstream_name` (String)
56+
- `upstream_schema_name` (String)
57+
58+
<a id="nestedobjatt--tables--source"></a>
59+
### Nested Schema for `tables.source`
60+
61+
Read-Only:
62+
63+
- `database_name` (String)
64+
- `name` (String)
65+
- `schema_name` (String)

docs/data-sources/table.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,20 @@ description: |-
1010

1111

1212

13+
## Example Usage
1314

15+
```terraform
16+
data "materialize_table" "all" {}
17+
18+
data "materialize_table" "materialize" {
19+
database_name = "materialize"
20+
}
21+
22+
data "materialize_table" "materialize_schema" {
23+
database_name = "materialize"
24+
schema_name = "schema"
25+
}
26+
```
1427

1528
<!-- schema generated by tfplugindocs -->
1629
## Schema

0 commit comments

Comments
 (0)