migrate

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package migrate applies the Goose SQL files shipped with the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider(db *sql.DB, directory string, opts ...goose.ProviderOption) (*goose.Provider, error)

func Run

func Run(ctx context.Context, url, command, directory string) error

Types

type LockError added in v0.2.4

type LockError struct {
	Err error
}

LockError identifies a failed acquisition without assuming contention caused it.

func (*LockError) Error added in v0.2.4

func (e *LockError) Error() string

func (*LockError) Unwrap added in v0.2.4

func (e *LockError) Unwrap() error

Jump to

Keyboard shortcuts

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