MCPcopy
hub / github.com/modelcontextprotocol/registry / Exec

Method Exec

internal/database/postgres.go:27–27  ·  view source on GitHub ↗
(ctx context.Context, sql string, arguments ...any)

Source from the content-addressed store, hash-verified

25// Executor is an interface for executing queries (satisfied by both pgx.Tx and pgxpool.Pool)
26type Executor interface {
27 Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
28 Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
29 QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
30}

Callers 10

ensureTemplateDBFunction · 0.80
NewTestDBFunction · 0.80
ensureMigrationsTableMethod · 0.80
applyMigrationMethod · 0.80
CreateServerMethod · 0.80
AcquirePublishLockMethod · 0.80
UnmarkAsLatestMethod · 0.80
SetLatestVersionMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1