Skip to content

Commit

Permalink
Merge #87650
Browse files Browse the repository at this point in the history
87650: docgen: fix missing backup diagram r=dt a=dt

Release note: none.

Co-authored-by: David Taylor <tinystatemachine@gmail.com>
  • Loading branch information
craig[bot] and dt committed Sep 9, 2022
2 parents 203c078 + be5d26f commit 2b5d87f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/generated/sql/bnf/backup.bnf
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
backup_stmt ::=
'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' ) 'AS' 'OF' 'SYSTEM' 'TIME' timestamp 'WITH' backup_options ( ( ',' backup_options ) )*
| 'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' ) 'AS' 'OF' 'SYSTEM' 'TIME' timestamp 'WITH' 'OPTIONS' '(' backup_options ( ( ',' backup_options ) )* ')'
| 'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' ) 'AS' 'OF' 'SYSTEM' 'TIME' timestamp
| 'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' ) 'WITH' backup_options ( ( ',' backup_options ) )*
| 'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' ) 'WITH' 'OPTIONS' '(' backup_options ( ( ',' backup_options ) )* ')'
| 'BACKUP' ( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* ) 'INTO' ( | subdirectory 'IN' | 'LATEST' 'IN') ( collectionURI | '(' localityURI ( ',' localityURI )* ')' )
2 changes: 1 addition & 1 deletion pkg/cmd/docgen/diagrams.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ var specs = []stmtSpec{
name: "backup",
stmt: "backup_stmt",
inline: []string{"opt_backup_targets", "opt_with_backup_options", "opt_as_of_clause", "as_of_clause", "backup_options_list"},
match: []*regexp.Regexp{regexp.MustCompile("'BACKUP' targets 'INTO'")},
match: []*regexp.Regexp{regexp.MustCompile("'BACKUP' backup_targets 'INTO'")},
replace: map[string]string{
"grant_targets": "( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* )",
"backup_targets": "( | 'TABLE' table_pattern ( ( ',' table_pattern ) )* | 'DATABASE' database_name ( ( ',' database_name ) )* )",
Expand Down

0 comments on commit 2b5d87f

Please sign in to comment.