MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Backup

Struct Backup

pkg/sql/sem/tree/backup.go:51–70  ·  view source on GitHub ↗

Backup represents a BACKUP statement.

Source from the content-addressed store, hash-verified

49
50// Backup represents a BACKUP statement.
51type 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
72var _ Statement = &Backup{}
73

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected