gen

package
v0.0.0-...-cf0705c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInitConfig

func CreateInitConfig(migrationsDir, goModPath string, FS afero.Fs, environment string) error

func CreateMigrationFile

func CreateMigrationFile(opts CreateMigrationOpts) (string, error)

func MigrationExists

func MigrationExists(wd, migrationsDir, migrationName string, FS afero.Fs, environment string) (bool, error)

func Regen

func Regen(opts RegenOpts) error

Types

type CreateMigrationOpts

type CreateMigrationOpts struct {
	Wd            string
	MigrationsDir string
	File          string
	CustomTmpl    string
	Environment   string
	FS            afero.Fs
}

type Params

type Params struct {
	Pwd    string
	Dir    string
	Create []tpl2.NewMigration
}

type RegenOpts

type RegenOpts struct {
	MigrationsDir  string
	MigrationName  string
	Filename       string
	FirstMigration bool
	Environment    string
	GoModPath      string
	Migrations     []pkg.Migration
	FS             afero.Fs
}

Jump to

Keyboard shortcuts

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