This file implements the logic for handling RESTORE SQL statements. Syntax: RESTORE DATABASE my_database FROM ' ' ENDPOINT = ' ' ACCESS_KEY_ID = ' ' SECRET_ACCESS_KEY = ' ' Example Usage: RESTORE DATABASE my_database FROM 's3://my_bucket/my_database/' ENDPOINT =
| 24 | // SECRET_ACCESS_KEY = 'xxxxxxxxxxxx' |
| 25 | |
| 26 | type RestoreConfig struct { |
| 27 | DbName string |
| 28 | RemoteFile string |
| 29 | StorageConfig *storage.ObjectStorageConfig |
| 30 | } |
| 31 | |
| 32 | var restoreRegex = regexp.MustCompile( |
| 33 | `(?i)RESTORE\s+DATABASE\s+(\S+)\s+FROM\s+'(s3c?://[^']+)'` + |
nothing calls this directly
no outgoing calls
no test coverage detected