(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig)
| 36 | `(?:\s+SECRET_ACCESS_KEY\s*=\s*'([^']+)')?`) |
| 37 | |
| 38 | func NewRestoreConfig(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig) *RestoreConfig { |
| 39 | return &RestoreConfig{ |
| 40 | DbName: dbName, |
| 41 | RemoteFile: remotePath, |
| 42 | StorageConfig: storageConfig, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func parseRestoreSQL(sql string) (*RestoreConfig, error) { |
| 47 | matches := restoreRegex.FindStringSubmatch(sql) |
no outgoing calls
no test coverage detected