migrator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package migrator implements database migrations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

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

Migrator implements DB migrations.

func New

func New(sqlFiles embed.FS, dirName string, logger log.Logger) (*Migrator, error)

New returns new instance of Migrator.

func (*Migrator) ApplyMigrations

func (m *Migrator) ApplyMigrations(db *sql.DB) error

ApplyMigrations applies DB migrations.

Jump to

Keyboard shortcuts

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