Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TagString = "gen"
Functions ¶
Types ¶
type Field ¶
type Field struct {
Name string
Type fieldType
Tags []*FieldTag
Alias string
Num int
IsRepeated bool
Desc *generator.FieldDescriptor
Map *MapFields
Slice *descriptor.FieldDescriptorProto
File *generator.FileDescriptor
}
type MapFields ¶
type MapFields struct {
Key *descriptor.FieldDescriptorProto
Value *descriptor.FieldDescriptorProto
}
type NamingStrategy ¶ added in v1.5.4
type NamingStrategy struct {
TablePrefix string
SingularTable bool
NameReplacer Replacer
NoLowerCase bool
}
NamingStrategy tables, columns naming strategy
func (NamingStrategy) ColumnName ¶ added in v1.5.4
func (ns NamingStrategy) ColumnName(table, column string) string
ColumnName convert string to column name
func (NamingStrategy) TableName ¶ added in v1.5.4
func (ns NamingStrategy) TableName(str string) string
TableName convert string to table name
Click to show internal directories.
Click to hide internal directories.