MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / PostgresStore

Struct PostgresStore

internal/store/postgresstore.go:39–46  ·  view source on GitHub ↗

PostgresStore persists configuration and authentication metadata using PostgreSQL as backend while mirroring data to a local workspace so existing file-based workflows continue to operate.

Source from the content-addressed store, hash-verified

37// PostgresStore persists configuration and authentication metadata using PostgreSQL as backend
38// while mirroring data to a local workspace so existing file-based workflows continue to operate.
39type PostgresStore struct {
40 db *sql.DB
41 cfg PostgresStoreConfig
42 spoolRoot string
43 configPath string
44 authDir string
45 mu sync.Mutex
46}
47
48// NewPostgresStore establishes a connection to PostgreSQL and prepares the local workspace.
49func NewPostgresStore(ctx context.Context, cfg PostgresStoreConfig) (*PostgresStore, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected