-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56883: sql: allow PRIMARY REGION syntax for CREATE / ALTER DATABASE r=ajstorm a=otan Release note (sql change): Introduced stubs for ALTER DATABASE ... PRIMARY REGION and CREATE TABLE ... PRIMARY REGION Co-authored-by: Oliver Tan <[email protected]>
- Loading branch information
Showing
11 changed files
with
135 additions
and
41 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
create_database_stmt ::= | ||
'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_regions_list opt_survive_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause opt_regions_list opt_survive_clause | ||
'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' '=' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause 'ENCODING' non_reserved_word_or_sconst opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' '=' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause 'CONNECTION' 'LIMIT' signed_iconst opt_primary_region_clause opt_regions_list opt_survival_goal_clause | ||
| 'CREATE' 'DATABASE' 'IF' 'NOT' 'EXISTS' database_name opt_with opt_template_clause opt_lc_collate_clause opt_lc_ctype_clause opt_primary_region_clause opt_regions_list opt_survival_goal_clause |
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
Oops, something went wrong.