Backup represents a BACKUP statement.
| 49 | |
| 50 | // Backup represents a BACKUP statement. |
| 51 | type Backup struct { |
| 52 | Targets *BackupTargetList |
| 53 | |
| 54 | // To is set to the root directory of the backup (called the <destination> in |
| 55 | // the docs). |
| 56 | To StringOrPlaceholderOptList |
| 57 | |
| 58 | AsOf AsOfClause |
| 59 | Options BackupOptions |
| 60 | |
| 61 | // AppendToLatest is set to true if the user creates a backup with |
| 62 | //`BACKUP...INTO LATEST...` |
| 63 | AppendToLatest bool |
| 64 | |
| 65 | // Subdir may be set by the parser when the SQL query is of the form `BACKUP |
| 66 | // INTO 'subdir' IN...`. Alternatively, if a subdir was not explicitly specified |
| 67 | // by the user, then this will be set during BACKUP planning once the destination |
| 68 | // has been resolved. |
| 69 | Subdir Expr |
| 70 | } |
| 71 | |
| 72 | var _ Statement = &Backup{} |
| 73 |
nothing calls this directly
no outgoing calls
no test coverage detected