config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	DSN:           "host=localhost user=test password=test dbname=migratordb sslmode=disable",
	MigrationPath: "migrations",
	MigrationType: MigrationSQL,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN           string
	MigrationPath string
	MigrationType MigrationType
}

func NewConfig

func NewConfig(configFile string) Config

type MigrationType

type MigrationType int
const (
	MigrationSQL MigrationType = iota
	MigrationGo
)

func (*MigrationType) Set

func (m *MigrationType) Set(value string) error

Set implements flag.Value.

func (*MigrationType) String

func (m *MigrationType) String() string

String implements flag.Value.

Jump to

Keyboard shortcuts

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