sqlitemigrations

package
v1.13.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL