Documentation ¶ Index ¶ type GormTransformer func (*GormTransformer) Name() string func (*GormTransformer) Transform(table string, fields []schema.Field) (modeCode string, err error) type Transformer 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) } Source Files ¶ View all Source files gorm.go transformer.go Click to show internal directories. Click to hide internal directories.