Function
NewBackupConfig
(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig)
Source from the content-addressed store, hash-verified
| 38 | `(?:\s+SECRET_ACCESS_KEY\s*=\s*'([^']+)')?`) |
| 39 | |
| 40 | func NewBackupConfig(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig) *BackupConfig { |
| 41 | return &BackupConfig{ |
| 42 | DbName: dbName, |
| 43 | RemotePath: remotePath, |
| 44 | StorageConfig: storageConfig, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func parseBackupSQL(sql string) (*BackupConfig, error) { |
| 49 | matches := backupRegex.FindStringSubmatch(sql) |
Tested by
no test coverage detected