Documentation ¶
Index ¶
Constants ¶
View Source
const ( XORM_TAG_NAME = "xorm" XORM_TAG_NOT_NULL = "notnull" XORM_TAG_AUTO_INCR = "autoincr" XORM_TAG_PRIMARY_KEY = "pk" XORM_TAG_UNIQUE = "unique" XORM_TAG_INDEX = "index" )
View Source
const FIXED_STR_MAX_SIZE = 255 // 固定字符串最大长度
Variables ¶
View Source
var Golang = config.Language{ Name: "golang", Template: golangModelTemplate, Types: map[string]string{}, Funcs: template.FuncMap{ "Type": type2string, "Tag": tag2string, }, Formatter: rewrite.CleanImportsWriteGolangFile, Importter: genGoImports, Packager: genNameSpace, ExtName: ".go", }
Golang represents a golang language
View Source
var TypeOfTime = reflect.TypeOf(time.Time{})
Functions ¶
func GetColTypeString ¶
GetColTypeString get the col type include length, for example: VARCHAR(255)
func GetNamedTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.