migration

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PGURL  *url.URL
	Path   string
	Logger logger.Logger
}

Config holds the information needed to connect to the database (PGURL), to find the migration SQL files (Path), and log debug messages (Logger).

func (*Config) Migrate

func (c *Config) Migrate() error

Migrate executes all migrations we have

Jump to

Keyboard shortcuts

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