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

Function NewMigrator

internal/database/migrate.go:33–35  ·  view source on GitHub ↗

NewMigrator creates a new migrator instance

(conn *pgx.Conn)

Source from the content-addressed store, hash-verified

31
32// NewMigrator creates a new migrator instance
33func NewMigrator(conn *pgx.Conn) *Migrator {
34 return &Migrator{conn: conn}
35}
36
37// ensureMigrationsTable creates the migrations tracking table if it doesn't exist
38func (m *Migrator) ensureMigrationsTable(ctx context.Context) error {

Callers 1

NewPostgreSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…