migration

package
v0.0.0-...-22d23f5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMigrationTable = "schema_migrations"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Down

func (c *Client) Down() error

func (*Client) Setup

func (c *Client) Setup(ctx context.Context, db *sql.DB, path string, migrTable ...string) error

func (*Client) SetupFS

func (c *Client) SetupFS(ctx context.Context, db *sql.DB, filesystem fs.FS, migrTable ...string) error

func (*Client) Up

func (c *Client) Up() error

Jump to

Keyboard shortcuts

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