MCPcopy Create free account
hub / github.com/apecloud/myduckserver / NewRestoreConfig

Function NewRestoreConfig

pgserver/restore_handler.go:38–44  ·  view source on GitHub ↗
(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig)

Source from the content-addressed store, hash-verified

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

Callers 2

parseRestoreSQLFunction · 0.85
ExecuteRestoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected