Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodOne = 1 MethodMany = 2 MethodExec = 3 MethodCount = 4 ExecRetAffect = 1 ExecRetLastid = 2 ExecRetResult = 3 )
View Source
const ( CondIf = 1 CondFor = 2 CondAlways = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type Method ¶
type QueryField ¶
type QueryField struct { // 在database中的原始名称 Name string // 该字段的表名称 Table string // 该字段的表别名 TableAlias string // 在sql中定义的字段别名 Alias string // 由用户定义的,该字段的引用名称 Ref string // 如果有alias,为alias的GoName形式 // 如果没有alias,为name的GoName形式 GoName string }
QueryField 解析的sql语句查询字段,一般用于生成反序列化代码或生成查询返回的结构体
Click to show internal directories.
Click to hide internal directories.