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

Function NewBackupConfig

pgserver/backup_handler.go:40–46  ·  view source on GitHub ↗
(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig)

Source from the content-addressed store, hash-verified

38 `(?:\s+SECRET_ACCESS_KEY\s*=\s*'([^']+)')?`)
39
40func NewBackupConfig(dbName, remotePath string, storageConfig *storage.ObjectStorageConfig) *BackupConfig {
41 return &BackupConfig{
42 DbName: dbName,
43 RemotePath: remotePath,
44 StorageConfig: storageConfig,
45 }
46}
47
48func parseBackupSQL(sql string) (*BackupConfig, error) {
49 matches := backupRegex.FindStringSubmatch(sql)

Callers 1

parseBackupSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected