transformer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormTransformer

type GormTransformer struct{}

GormTransformer gorm transformer implement

func (*GormTransformer) Name

func (*GormTransformer) Name() string

func (*GormTransformer) Transform

func (*GormTransformer) Transform(table string, fields []schema.Field) (modeCode string, err error)

Transform implement transform ddl info to code

type Transformer

type Transformer interface {
	// Name transformer name
	Name() string
	// Transform transform ddl info to code
	Transform(table string, fields []schema.Field) (code string, err error)
}

Jump to

Keyboard shortcuts

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