Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SqlBeeCommon ¶
type SqlBeeCommon struct {
SqlBeeHelper
Table string
Model any
Filter map[string]any
RunStatus bool //是否run()过?
}
层次结构为:
SqlBeeHelper -> SqlBeeCommon -> SqlBee[?]
type SqlBeeE ¶
type SqlBeeE struct {
SqlBeeCommon
Method SqlBeeE_MethodType
Insert_values map[string]any
Insert_lastId int //插入操作之后返回的新数据条的id
Update_values map[string]any
Update_ids []int //更新操作之后返回的受影响的所有数据条的id
}
type SqlBeeE_MethodType ¶
type SqlBeeE_MethodType int
SqlBeeE的method type (枚举)
const ( // 第一个元素为None None SqlBeeE_MethodType = iota Insert Delete Update )
type SqlBeeHelper ¶
type SqlBeeHelper struct {
}
层次结构为:
SqlBeeHelper -> SqlBeeCommon -> SqlBee[?]
SqlBeeHelper是最顶层的配置
func (*SqlBeeHelper) SQL_Semantics_WHERE ¶
func (r *SqlBeeHelper) SQL_Semantics_WHERE(_filter map[string]any) string
为 WHERE 解析语义(包含WHERE关键词本身)
返回例如 " WHERE name = '张三' AND city = 'Shanghai' "
type SqlBeeQ ¶
type SqlBeeQ struct {
SqlBeeCommon
Order_by string
Limit int
}
Click to show internal directories.
Click to hide internal directories.
