Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlitemigrations

package
v1.14.2 Latest Latest
Warning

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

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

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