package
0.0.4
Repository: https://github.com/zhanghup/go-tools.v2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Info db.Info[beans.User](ctx,"62ecc37312dc3d00012bff2a","id") db.Info[beans.User](ctx,"62ecc37312dc3d00012bff2a",`id|corp = {{ ctx "corp" }}`) >> "|"后面代表在where后面添加的查询条件 db.Info[beans.User](ctx,"62ecc37312dc3d00012bff2a",`id|corp = ?`,"0000") >> "|"后面代表在where后面添加的查询条件 */.
Info2 根据id查找数据库对象,ctx可以为nil.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TemplateFuncWith Sql With 模板, 初始化模板: db.TemplateFunc("users",function(ctx context.Context) string{ return "select id,name from user" }) select * from {{ withs "users" }} => {{ sql_with_users }} select * from __sql_with_users => with recursive _ as (select 1),__sql_with_users as (select id,name from user) select * from __sql_with_users */.
No description provided by the author
No description provided by the author
Slice db.Slice[beans.User](ctx,"62ecc37312dc3d00012bff2a","id",[]string{}) db.Slice[beans.User](ctx,"62ecc37312dc3d00012bff2a",`id|corp = {{ ctx "corp" }}`,[]string{}) >> "|"后面代表在where后面添加的查询条件 db.Slice[beans.User](ctx,"62ecc37312dc3d00012bff2a",`id|corp = ?`,[]string{},"0000") >> "|"后面代表在where后面添加的查询条件 */.
Slice2 查找数据库对象,ctx可以为nil.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author