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

Struct RestoreConfig

pgserver/restore_handler.go:26–30  ·  view source on GitHub ↗

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 =

Source from the content-addressed store, hash-verified

24// SECRET_ACCESS_KEY = 'xxxxxxxxxxxx'
25
26type RestoreConfig struct {
27 DbName string
28 RemoteFile string
29 StorageConfig *storage.ObjectStorageConfig
30}
31
32var restoreRegex = regexp.MustCompile(
33 `(?i)RESTORE\s+DATABASE\s+(\S+)\s+FROM\s+'(s3c?://[^']+)'` +

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected