migrations

package
v0.0.0-...-fd739bc Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

FS exports the migrations file system for use in other areas of the program This allows the migrations to be embedded in the binary and used in testing

Functions

func NewMigrations

func NewMigrations(params MigrationParams) (*migrate.Migrate, error)

Types

type MigrationParams

type MigrationParams struct {
	FS          fs.FS
	FSPath      string `json:"fs_path"`
	DatabaseURL string `json:"database_url"`
}

Jump to

Keyboard shortcuts

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