Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update BACKUP diagram #54760

Merged
merged 1 commit into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions docs/generated/sql/bnf/backup.bnf
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
backup_stmt ::=
'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination 'AS OF SYSTEM TIME' timestamp 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination 'AS OF SYSTEM TIME' timestamp 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination 'AS OF SYSTEM TIME' timestamp
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' subdirectory 'IN' destination
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination 'AS OF SYSTEM TIME' timestamp 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination 'AS OF SYSTEM TIME' timestamp 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination 'AS OF SYSTEM TIME' timestamp
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' destination
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination 'AS OF SYSTEM TIME' timestamp 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination 'AS OF SYSTEM TIME' timestamp 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination 'AS OF SYSTEM TIME' timestamp
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' 'LATEST' 'IN' destination
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'TO' destination 'AS OF SYSTEM TIME' timestamp 'INCREMENTAL FROM' full_backup_location ( | ',' incremental_backup_location ( ',' incremental_backup_location )* ) 'WITH' backup_options_list
'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'TO' destination 'AS OF SYSTEM TIME' timestamp 'INCREMENTAL FROM' full_backup_location ( | ',' incremental_backup_location ( ',' incremental_backup_location )* ) 'WITH' backup_options_list
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'TO' destination 'AS OF SYSTEM TIME' timestamp 'INCREMENTAL FROM' full_backup_location ( | ',' incremental_backup_location ( ',' incremental_backup_location )* ) 'WITH' 'OPTIONS' '(' backup_options_list ')'
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'TO' destination 'AS OF SYSTEM TIME' timestamp 'INCREMENTAL FROM' full_backup_location ( | ',' incremental_backup_location ( ',' incremental_backup_location )* )
| 'BACKUP' ( ( 'TABLE' | ) table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'TO' destination 'AS OF SYSTEM TIME' timestamp 'WITH' backup_options_list
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/docgen/diagrams.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ var specs = []stmtSpec{
"scont_or_placeholder": "destination",
"sconst_or_placeholder": "subdirectory",
},
unlink: []string{"destination", "timestamp", "full_backup_location", "incremental_backup_location", "destination"},
unlink: []string{"destination", "timestamp", "full_backup_location", "incremental_backup_location", "destination"},
exclude: []*regexp.Regexp{regexp.MustCompile("'INTO'")},
},
{
name: "begin_transaction",
Expand Down