migration

package
v1.4.3-poc-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db sqlx.DBExecutor, output io.Writer) error

func MustMigrate

func MustMigrate(db sqlx.DBExecutor, w io.Writer)

func OutputFromContext

func OutputFromContext(ctx context.Context) io.Writer

func SyncEnum

func SyncEnum(db sqlx.DBExecutor) error

func WithInspectionOutput added in v1.1.0

func WithInspectionOutput(ctx context.Context, w io.Writer) context.Context

Types

type SqlMetaEnum

type SqlMetaEnum struct {
	TName string `db:"F_table_name,size=64"`
	CName string `db:"F_column_name,size=64"`
	Value int    `db:"F_value"`
	Type  string `db:"F_type,size=255"`
	Key   string `db:"F_key,size=255"`
	Label string `db:"F_label,size=255"`
}

func (*SqlMetaEnum) TableName

func (*SqlMetaEnum) TableName() string

func (*SqlMetaEnum) UniqueIndexes

func (*SqlMetaEnum) UniqueIndexes() builder.Indexes

Jump to

Keyboard shortcuts

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