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