Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrations ¶
type Migrations struct { Pool *sql.DB Logger logger.Logger MetadataTableName string MetadataKey string // contains filtered or unexported fields }
Migrations performs migrations for the database schema
func (*Migrations) GetConn ¶
func (m *Migrations) GetConn() *sql.Conn
GetConn returns the active connection.
func (*Migrations) Perform ¶
func (m *Migrations) Perform(ctx context.Context, migrationFns []commonsql.MigrationFn) (err error)
Perform the required migrations
Click to show internal directories.
Click to hide internal directories.