Skip to content

Commit

Permalink
docgen: remove redundant SQL diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
taroface committed Jan 26, 2023
1 parent 3b5bcf0 commit f7170c5
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 62 deletions.
4 changes: 0 additions & 4 deletions docs/generated/sql/bnf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ FILES = [
"alter_database_primary_region",
"alter_database_set_zone_config_extension_stmt",
"alter_database_set_stmt",
"alter_database_stmt",
"alter_database_survival_goal_stmt",
"alter_database_to_schema_stmt",
"alter_ddl_stmt",
Expand All @@ -34,13 +33,11 @@ FILES = [
"alter_func_dep_extension_stmt",
"alter_index_partition_by",
"alter_index",
"alter_index_stmt",
"alter_index_visible_stmt",
"alter_partition_stmt",
"alter_primary_key",
"alter_range_relocate_stmt",
"alter_range",
"alter_range_stmt",
"alter_rename_view_stmt",
"alter_role_stmt",
"alter_scatter_index_stmt",
Expand All @@ -59,7 +56,6 @@ FILES = [
"alter_table_reset_storage_param",
"alter_table_set_schema_stmt",
"alter_table_set_storage_param",
"alter_table_stmt",
"alter_type",
"alter_view",
"alter_view_owner_stmt",
Expand Down
17 changes: 0 additions & 17 deletions docs/generated/sql/bnf/alter_database_stmt.bnf

This file was deleted.

8 changes: 0 additions & 8 deletions docs/generated/sql/bnf/alter_index_stmt.bnf

This file was deleted.

3 changes: 0 additions & 3 deletions docs/generated/sql/bnf/alter_range_stmt.bnf

This file was deleted.

10 changes: 0 additions & 10 deletions docs/generated/sql/bnf/alter_table_stmt.bnf

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/cmd/docgen/diagrams.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,6 @@ var specs = []stmtSpec{
replace: map[string]string{"'RENAME' 'TO' database_name": "'RENAME' 'TO' database_new_name", "'SUPER' 'REGION' name": "'SUPER' 'REGION' region_name", "'VALUES' name_list": "'VALUES' region_name_list", "var_name": "variable", "var_value": "value"},
unlink: []string{"database_new_name", "region_name_list", "variable", "value"},
},
{
name: "alter_database_stmt",
},
{
name: "alter_database_primary_region",
stmt: "alter_database_primary_region_stmt",
Expand All @@ -431,9 +428,6 @@ var specs = []stmtSpec{
replace: map[string]string{"standalone_index_name": "index_name", "var_name": "variable", "var_value": "value", "'RENAME' 'TO' index_name": "'RENAME' 'TO' index_new_name"},
unlink: []string{"index_new_name", "variable", "value"},
},
{
name: "alter_index_stmt",
},
{
name: "alter_range",
stmt: "alter_range_stmt",
Expand All @@ -445,9 +439,6 @@ var specs = []stmtSpec{
replace: map[string]string{"'RANGE' a_expr": "'RANGE' range_id"},
unlink: []string{"range_id"},
},
{
name: "alter_range_stmt",
},
{
name: "alter_table_reset_storage_param",
stmt: "alter_onetable_stmt",
Expand Down Expand Up @@ -557,9 +548,6 @@ var specs = []stmtSpec{
replace: map[string]string{"relation_expr": "table_name", "'RENAME' 'TO' table_name": "'RENAME' 'TO' table_new_name", "var_name": "variable", "var_value": "value"},
unlink: []string{"table_name", "table_new_name", "variable", "value"},
},
{
name: "alter_table_stmt",
},
{
name: "alter_table_cmds",
inline: []string{"alter_table_cmd", "column_table_def", "col_qual_list", "opt_column", "opt_validate_behavior", "table_constraint", "alter_column_default", "alter_column_visible", "opt_set_data", "opt_collate", "opt_alter_column_using", "alter_column_on_update", "opt_hash_sharded", "opt_with_storage_parameter_list", "opt_drop_behavior", "audit_mode", "partition_by", "partition_by_table", "partition_by_inner", "storage_parameter_list", "storage_parameter", "storage_parameter_key_list"},
Expand Down
4 changes: 0 additions & 4 deletions pkg/gen/bnf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ BNF_SRCS = [
"//docs/generated/sql/bnf:alter_database_set_secondary_region_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_set_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_set_zone_config_extension_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_survival_goal_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_to_schema_stmt.bnf",
"//docs/generated/sql/bnf:alter_ddl_stmt.bnf",
Expand All @@ -34,13 +33,11 @@ BNF_SRCS = [
"//docs/generated/sql/bnf:alter_func_stmt.bnf",
"//docs/generated/sql/bnf:alter_index.bnf",
"//docs/generated/sql/bnf:alter_index_partition_by.bnf",
"//docs/generated/sql/bnf:alter_index_stmt.bnf",
"//docs/generated/sql/bnf:alter_index_visible_stmt.bnf",
"//docs/generated/sql/bnf:alter_partition_stmt.bnf",
"//docs/generated/sql/bnf:alter_primary_key.bnf",
"//docs/generated/sql/bnf:alter_range.bnf",
"//docs/generated/sql/bnf:alter_range_relocate_stmt.bnf",
"//docs/generated/sql/bnf:alter_range_stmt.bnf",
"//docs/generated/sql/bnf:alter_rename_view_stmt.bnf",
"//docs/generated/sql/bnf:alter_role_stmt.bnf",
"//docs/generated/sql/bnf:alter_scatter_index_stmt.bnf",
Expand All @@ -59,7 +56,6 @@ BNF_SRCS = [
"//docs/generated/sql/bnf:alter_table_reset_storage_param.bnf",
"//docs/generated/sql/bnf:alter_table_set_schema_stmt.bnf",
"//docs/generated/sql/bnf:alter_table_set_storage_param.bnf",
"//docs/generated/sql/bnf:alter_table_stmt.bnf",
"//docs/generated/sql/bnf:alter_type.bnf",
"//docs/generated/sql/bnf:alter_view.bnf",
"//docs/generated/sql/bnf:alter_view_owner_stmt.bnf",
Expand Down
4 changes: 0 additions & 4 deletions pkg/gen/docs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ DOCS_SRCS = [
"//docs/generated/sql/bnf:alter_database_set_secondary_region_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_set_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_set_zone_config_extension_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_survival_goal_stmt.bnf",
"//docs/generated/sql/bnf:alter_database_to_schema_stmt.bnf",
"//docs/generated/sql/bnf:alter_ddl_stmt.bnf",
Expand All @@ -46,13 +45,11 @@ DOCS_SRCS = [
"//docs/generated/sql/bnf:alter_func_stmt.bnf",
"//docs/generated/sql/bnf:alter_index.bnf",
"//docs/generated/sql/bnf:alter_index_partition_by.bnf",
"//docs/generated/sql/bnf:alter_index_stmt.bnf",
"//docs/generated/sql/bnf:alter_index_visible_stmt.bnf",
"//docs/generated/sql/bnf:alter_partition_stmt.bnf",
"//docs/generated/sql/bnf:alter_primary_key.bnf",
"//docs/generated/sql/bnf:alter_range.bnf",
"//docs/generated/sql/bnf:alter_range_relocate_stmt.bnf",
"//docs/generated/sql/bnf:alter_range_stmt.bnf",
"//docs/generated/sql/bnf:alter_rename_view_stmt.bnf",
"//docs/generated/sql/bnf:alter_role_stmt.bnf",
"//docs/generated/sql/bnf:alter_scatter_index_stmt.bnf",
Expand All @@ -71,7 +68,6 @@ DOCS_SRCS = [
"//docs/generated/sql/bnf:alter_table_reset_storage_param.bnf",
"//docs/generated/sql/bnf:alter_table_set_schema_stmt.bnf",
"//docs/generated/sql/bnf:alter_table_set_storage_param.bnf",
"//docs/generated/sql/bnf:alter_table_stmt.bnf",
"//docs/generated/sql/bnf:alter_type.bnf",
"//docs/generated/sql/bnf:alter_view.bnf",
"//docs/generated/sql/bnf:alter_view_owner_stmt.bnf",
Expand Down

0 comments on commit f7170c5

Please sign in to comment.