Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrations ¶
type Migrations struct { DB pginterfaces.PGXPoolConn Logger logger.Logger MetadataTableName string MetadataKey string }
Migrations performs migrations for the database schema
func (Migrations) EnsureMetadataTable ¶
func (m Migrations) EnsureMetadataTable(ctx context.Context) (err error)
func (Migrations) Perform ¶
func (m Migrations) Perform(ctx context.Context, migrationFns []commonsql.MigrationFn) error
Perform the required migrations
Click to show internal directories.
Click to hide internal directories.