package
0.0.0-20250103035936-8dc95266cc7c
Repository: https://github.com/ouseikou/sqlbuilder.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
WithExpressionCallAs 设置 CallAs 字段.
# Constants
通用函数.
通用 format.
通用 format.
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
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
No description provided by the author
BackQuote 反引号反义处理.
No description provided by the author
通用函数.
pg.
通用函数.
pg.
pg.
pg format.
pg format.
pg.
pg format.
pg format.
通用函数.
No description provided by the author
No description provided by the author
No description provided by the author
CastType 类型强转使用表达式适配.
pg.
pg format.
pg format.
通用 format.
通用 format.
通用 format.
ColumnTypeConvertFormat ColumnTypeConvertAsFormat 转换为指定类型, 占位符1: 列, 占位符2: DDL类型.
No description provided by the author
Concat 可变参数的通用函数.
通用 format.
通用 format.
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
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
No description provided by the author
No description provided by the author
No description provided by the author
CountDistinct 不建议一个字符串拼接塞两个表达式的设计, 应该算作n个表达式归纳为自定义表达式的设计.
No description provided by the author
No description provided by the author
No description provided by the author
pg format.
DateTruncFormat DateTruncAsFormat 转换为离散时间, 最终返回是timestamp类型.
No description provided by the author
DoubleQuotation 双引号反义处理.
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
通用 format.
通用 format.
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
通用函数.
通用 format.
通用 format.
No description provided by the author
通用函数.
通用 format.
通用 format.
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
ModelStrategy 模型模式.
通用函数.
通用 format.
通用 format.
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
通用 format.
通用 format.
通用函数.
通用 format.
通用 format.
Stddev pg 总体标准差.
No description provided by the author
No description provided by the author
No description provided by the author
通用函数.
通用 format.
通用 format.
No description provided by the author
No description provided by the author
TemplateStrategy 模板模式.
pg format.
ToCharFormat ToCharAsFormat to_char(时间类型字段, format), 最终返回是字符串.
pg.
pg format.
pg format.
通用函数.
通用 format.
通用 format.
Variance pg 方差.
No description provided by the author
# Variables
AggregationFuncFormatMap 映射聚合函数.
ArithFormatMap 内置函数名称和SQL片段 映射.
ArithFormatMap 内置函数名称和SQL片段 映射.
DriverKeywordWrapMap 驱动关键字包裹符.
InnerFuncFormatMap 内置函数名称和SQL片段 映射.
InnerFuncFormatMap 内置函数名称和SQL片段 映射.
AggregationFuncFormatMap 映射聚合函数.
VariadicInnerFuncFormatMap 可变参数.
# Structs
No description provided by the author
No description provided by the author
CaseWhen 用于动态构建 CASE WHEN 表达式, case 列 when 相当于 case when 等值条件.
CaseWhenCondition 表示1行 case-when-then 语句.
No description provided by the author
Condition 遍历 Where-Condition, 元素 item switch item.Operator case > = < >= <= <> like: for field, value := range item.Args, xormCond builder.Cond = builder.$Operator{field: value} case between: for field, value := range item.Args, value.(betweenObj), Between{Col: $field, LessVal: $left, MoreVal: $right} case in: for field, value := range item.Args, In($field, []interface{}{$value}) case is null, is not null: for field, value := range item.Args, value.(bool), IsNull{$field} / NotNull{$field} case and , or: for field, value := range item.Args, Expr($exprFmt, ...value).
No description provided by the author
Expression 函数表达式 e.g.
FieldClause 使用需要断言.
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
No description provided by the author
No description provided by the author
SQLReference todo Select缺少自定义字段.
No description provided by the author
No description provided by the author
# Type aliases
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
ExpressionOption 类型定义.
No description provided by the author
No description provided by the author
No description provided by the author