-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup_statement.go
More file actions
72 lines (59 loc) · 2.36 KB
/
backup_statement.go
File metadata and controls
72 lines (59 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package ast
// BackupDatabaseStatement represents a BACKUP DATABASE statement
type BackupDatabaseStatement struct {
DatabaseName *IdentifierOrValueExpression
Devices []*DeviceInfo
Options []*BackupOption
}
func (s *BackupDatabaseStatement) statementNode() {}
func (s *BackupDatabaseStatement) statement() {}
func (s *BackupDatabaseStatement) node() {}
// BackupTransactionLogStatement represents a BACKUP LOG statement
type BackupTransactionLogStatement struct {
DatabaseName *IdentifierOrValueExpression
Devices []*DeviceInfo
Options []*BackupOption
}
func (s *BackupTransactionLogStatement) statementNode() {}
func (s *BackupTransactionLogStatement) statement() {}
func (s *BackupTransactionLogStatement) node() {}
// BackupOption represents a backup option
type BackupOption struct {
OptionKind string // Compression, NoCompression, StopOnError, ContinueAfterError, etc.
Value ScalarExpression
}
// BackupCertificateStatement represents a BACKUP CERTIFICATE statement
type BackupCertificateStatement struct {
Name *Identifier
File ScalarExpression
PrivateKeyPath ScalarExpression
EncryptionPassword ScalarExpression
DecryptionPassword ScalarExpression
ActiveForBeginDialog string // "NotSet", "Active", "Inactive"
}
func (s *BackupCertificateStatement) statement() {}
func (s *BackupCertificateStatement) node() {}
// BackupServiceMasterKeyStatement represents a BACKUP SERVICE MASTER KEY statement
type BackupServiceMasterKeyStatement struct {
File ScalarExpression
Password ScalarExpression
}
func (s *BackupServiceMasterKeyStatement) statement() {}
func (s *BackupServiceMasterKeyStatement) node() {}
// RestoreServiceMasterKeyStatement represents a RESTORE SERVICE MASTER KEY statement
type RestoreServiceMasterKeyStatement struct {
File ScalarExpression
Password ScalarExpression
IsForce bool
}
func (s *RestoreServiceMasterKeyStatement) statement() {}
func (s *RestoreServiceMasterKeyStatement) node() {}
// RestoreMasterKeyStatement represents a RESTORE MASTER KEY statement
type RestoreMasterKeyStatement struct {
File ScalarExpression
Password ScalarExpression
EncryptionPassword ScalarExpression
IsForce bool
}
func (s *RestoreMasterKeyStatement) statement() {}
func (s *RestoreMasterKeyStatement) node() {}