Skip to content

Commit 1a42921

Browse files
authored
chore: database name list in instance and project (#95)
* chore: use set for unordered collection * chore: update doc * fix: list all databases in the project * chore: update * fix: lint * chore: add databases for instance * chore: more error log * chore: update * chore: update * feat: database resource * fix: lint * feat: support semantic type setting * fix: lint * chore: update * chore: database name list in instance and project * chore: update docs
1 parent 87a42a5 commit 1a42921

File tree

23 files changed

+208
-15
lines changed

23 files changed

+208
-15
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.15
1+
1.0.16

docs/data-sources/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The instance data source.
2222
### Read-Only
2323

2424
- `data_sources` (Set of Object) (see [below for nested schema](#nestedatt--data_sources))
25+
- `databases` (Set of String) The databases full name in the resource.
2526
- `engine` (String) The instance engine. Support MYSQL, POSTGRES, TIDB, SNOWFLAKE, CLICKHOUSE, MONGODB, SQLITE, REDIS, ORACLE, SPANNER, MSSQL, REDSHIFT, MARIADB, OCEANBASE.
2627
- `engine_version` (String) The engine version.
2728
- `environment` (String) The environment name for your instance in "environments/{resource id}" format.

docs/data-sources/instance_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The instance data source list.
3030
Read-Only:
3131

3232
- `data_sources` (Set of Object) (see [below for nested schema](#nestedobjatt--instances--data_sources))
33+
- `databases` (Set of String)
3334
- `engine` (String)
3435
- `engine_version` (String)
3536
- `environment` (String)

docs/data-sources/project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The project data source.
2424
- `allow_modify_statement` (Boolean) Allow modifying statement after issue is created.
2525
- `auto_enable_backup` (Boolean) Whether to automatically enable backup.
2626
- `auto_resolve_issue` (Boolean) Enable auto resolve issue.
27+
- `databases` (Set of String) The databases full name in the resource.
2728
- `enforce_issue_title` (Boolean) Enforce issue title created by user instead of generated by Bytebase.
2829
- `id` (String) The ID of this resource.
2930
- `key` (String) The project key.

docs/data-sources/project_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Read-Only:
3232
- `allow_modify_statement` (Boolean)
3333
- `auto_enable_backup` (Boolean)
3434
- `auto_resolve_issue` (Boolean)
35+
- `databases` (Set of String)
3536
- `enforce_issue_title` (Boolean)
3637
- `key` (String)
3738
- `members` (Set of Object) (see [below for nested schema](#nestedobjatt--projects--members))

docs/resources/instance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The instance resource.
3131

3232
### Read-Only
3333

34+
- `databases` (Set of String) The databases full name in the resource.
3435
- `engine_version` (String) The engine version.
3536
- `id` (String) The ID of this resource.
3637
- `name` (String) The instance full name in instances/{resource id} format.

docs/resources/project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The project resource.
2626
- `allow_modify_statement` (Boolean) Allow modifying statement after issue is created.
2727
- `auto_enable_backup` (Boolean) Whether to automatically enable backup.
2828
- `auto_resolve_issue` (Boolean) Enable auto resolve issue.
29+
- `databases` (Set of String) The databases full name in the resource.
2930
- `enforce_issue_title` (Boolean) Enforce issue title created by user instead of generated by Bytebase.
3031
- `members` (Block Set) The members in the project. (see [below for nested schema](#nestedblock--members))
3132
- `postgres_database_tenant_mode` (Boolean) Whether to enable the database tenant mode for PostgreSQL. If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.

examples/environments/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
bytebase = {
5-
version = "1.0.15"
5+
version = "1.0.16"
66
# For local development, please use "terraform.local/bytebase/bytebase" instead
77
source = "registry.terraform.io/bytebase/bytebase"
88
}

examples/groups/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "1.0.15"
4+
version = "1.0.16"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "registry.terraform.io/bytebase/bytebase"
77
}

examples/instances/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
bytebase = {
5-
version = "1.0.15"
5+
version = "1.0.16"
66
# For local development, please use "terraform.local/bytebase/bytebase" instead
77
source = "registry.terraform.io/bytebase/bytebase"
88
}

0 commit comments

Comments
 (0)