This file implements the logic for handling BACKUP SQL statements. Syntax: BACKUP DATABASE my_database TO ' ' ENDPOINT = ' ' ACCESS_KEY_ID = ' ' SECRET_ACCESS_KEY = ' ' Example Usage: BACKUP DATABASE my_database TO 's3://my_bucket/my_database/' ENDPOINT = 's3.cn-
| 26 | // ACCESS_KEY_ID = 'xxxxxxxxxxxxx' |
| 27 | // SECRET_ACCESS_KEY = 'xxxxxxxxxxxx' |
| 28 | |
| 29 | type BackupConfig struct { |
| 30 | DbName string |
| 31 | RemotePath string |
| 32 | StorageConfig *storage.ObjectStorageConfig |
| 33 | } |
| 34 | |
| 35 | var backupRegex = regexp.MustCompile( |
nothing calls this directly
no outgoing calls
no test coverage detected