MCPcopy
hub / github.com/PatchMon/PatchMon / DB

Struct DB

server-source-code/internal/database/db.go:23–27  ·  view source on GitHub ↗

DB provides database access via pgxpool and sqlc-generated queries.

Source from the content-addressed store, hash-verified

21
22// DB provides database access via pgxpool and sqlc-generated queries.
23type DB struct {
24 pool *pgxpool.Pool
25 Queries *db.Queries
26 cfg *config.Config
27}
28
29// NewDB creates a pgx pool and sqlc Queries with retry logic.
30func NewDB(ctx context.Context, cfg *config.Config) (*DB, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected