-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
260 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: documentation | ||
on: | ||
pull_request: | ||
paths: | ||
- pkg/** | ||
|
||
jobs: | ||
documentation: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- run: go mod download | ||
|
||
- run: go generate ./... | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Terraform Docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
pull_request: | ||
paths: | ||
- pkg/** | ||
- integration/** | ||
|
||
jobs: | ||
integration: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: terraform | ||
on: | ||
pull_request: | ||
paths: | ||
- examples/** | ||
- integration/** | ||
|
||
jobs: | ||
terraform: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: hashicorp/setup-terraform@v2 | ||
|
||
- run: terraform fmt -recursive -check -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
name: test | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- README.md | ||
- CHANGELOG.md | ||
paths: | ||
- pkg/** | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "materialize_index Resource - terraform-provider-materialize" | ||
subcategory: "" | ||
description: |- | ||
An in-memory index on a source, view, or materialized view. | ||
--- | ||
|
||
# materialize_index (Resource) | ||
|
||
An in-memory index on a source, view, or materialized view. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "materialize_index" "loadgen_index" { | ||
name = "example_index" | ||
cluster_name = "cluster" | ||
method = "ARRANGEMENT" | ||
obj_name { | ||
name = "source" | ||
schema_name = "schema" | ||
database_name = "database" | ||
} | ||
} | ||
# CREATE INDEX index | ||
# IN CLUSTER cluster | ||
# ON "database"."schema"."source" | ||
# USING ARRANGEMENT | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cluster_name` (String) The cluster to maintain this index. If not specified, defaults to the active cluster. | ||
- `obj_name` (Block List, Min: 1, Max: 1) The name of the source, view, or materialized view on which you want to create an index. (see [below for nested schema](#nestedblock--obj_name)) | ||
|
||
### Optional | ||
|
||
- `col_expr` (Block List) The expressions to use as the key for the index. (see [below for nested schema](#nestedblock--col_expr)) | ||
- `default` (Boolean) Creates a default index using all inferred columns are used. | ||
- `method` (String) The name of the index method to use. | ||
- `name` (String) The identifier for the index. | ||
|
||
### Read-Only | ||
|
||
- `database_name` (String) The identifier for the index database. | ||
- `id` (String) The ID of this resource. | ||
- `qualified_sql_name` (String) The fully qualified name of the view. | ||
- `schema_name` (String) The identifier for the index schema. | ||
|
||
<a id="nestedblock--obj_name"></a> | ||
### Nested Schema for `obj_name` | ||
|
||
Required: | ||
|
||
- `name` (String) The obj_name name. | ||
|
||
Optional: | ||
|
||
- `database_name` (String) The obj_name database name. | ||
- `schema_name` (String) The obj_name schema name. | ||
|
||
|
||
<a id="nestedblock--col_expr"></a> | ||
### Nested Schema for `col_expr` | ||
|
||
Required: | ||
|
||
- `field` (String) The name of the option you want to set. | ||
|
||
Optional: | ||
|
||
- `val` (String) The value for the option. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Indexes can be imported using the index id: | ||
terraform import materialize_index.example_index <index_id> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.