-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: add SHOW BACKUPS IN Y and SHOW BACKUP x IN Y
This change teaches SHOW BACKUP about collections, specifically adding support for listing the backups in a collection with SHOW BACKUPS IN dest and for showing an individual backup with dest using SHOW BACKUP x IN dest. The former is a thin wrapper around 'ls' on the destination while the latter is an even thinner wrapper around 'SHOW BACKUP dest/x', but both should make it easier to interact with backups in collections, which often have long and cumbersome URIs (including keys), so the more we can keep the collection URI constant and let you just specify which element in the collection you want to SHOW, RESTORE, etc, the easier it will be. Release note (enterprise change): SHOW BACKUPS can be used to list backups in a backup collection created by BACKUP INTO.
- Loading branch information
Showing
7 changed files
with
141 additions
and
5 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,3 +1,4 @@ | ||
show_backup_stmt ::= | ||
'SHOW' 'BACKUP' location opt_with_options | ||
| 'SHOW' 'BACKUP' location 'IN' location opt_with_options | ||
| 'SHOW' 'BACKUP' 'SCHEMAS' location opt_with_options |
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