pgmig

package module
v0.0.0-...-f00e228 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

What?

Small migration wizard on top of golang-migrate/migrate

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MigrationsDir string `toml:"migrations_dir"`
	Host          string `toml:"host"`
	Port          string `toml:"port"`
	User          string `toml:"user"`
	Pwd           string `toml:"pwd"`
	DB            string `toml:"db"`
	SSL_MODE      string `toml:"sslmode"`
	SSL_CERT      string `toml:"sslcert"`
	SSL_KEY       string `toml:"sslkey"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(p string) (*Config, error)

func (Config) ConnURL

func (c Config) ConnURL() string

func (Config) Down

func (c Config) Down() error

func (Config) DownN

func (c Config) DownN(n int) error

func (Config) Up

func (c Config) Up() error

func (Config) UpN

func (c Config) UpN(n int) error

type Migrate

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

func New

func New(cp string) (*Migrate, error)

func (Migrate) Wizard

func (m Migrate) Wizard()

Jump to

Keyboard shortcuts

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