cmd

package
v1.1.2-mainnet.rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNewMigrations

func CheckNewMigrations(originalMigrations []string, newMigrations []string) error

CheckNewMigrations makes sure the new migrations are sorted correctly

func Execute

func Execute()

func GetSQLFilesFromList

func GetSQLFilesFromList(files []NamedFile) []string

GetSQLFilesFromList returns the list of file names from a list of, local file objects but only SQL files

func NewMigrations

func NewMigrations(newList []string, oldList []string) []string

NewMigrations gets the list of brand new migrations

Types

type GithubFile

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

func (GithubFile) Name

func (file GithubFile) Name() string

func (*GithubFile) UnmarshalJSON

func (file *GithubFile) UnmarshalJSON(b []byte) error

type NamedFile

type NamedFile interface {
	Name() string
}

NamedFile interface represents a local file object, with a Name function

type Set

type Set = map[string]bool

Jump to

Keyboard shortcuts

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