Documentation ¶
Index ¶
- func And(items ...xqi.SqlLogic) xqi.SqlCondition
- func Avg(expr interface{}) SqlField
- func Case(expr interface{}, cases map[interface{}]interface{}, caseElse ...interface{}) SqlField
- func CaseThen(condition interface{}, caseTrue, caseFalse interface{}) SqlField
- func Cast(expr interface{}, asType DbType) SqlField
- func Concat(str interface{}, str1 interface{}, more ...interface{}) SqlField
- func Count(expr interface{}) SqlField
- func DateAdd(date interface{}, interval int, datePart xdriveri.DatePart) SqlField
- func DateDiff(date1, date2 interface{}, datePart xdriveri.DatePart) SqlField
- func DateFormat(expr interface{}, format string) SqlField
- func DateSub(date interface{}, interval int, datePart xdriveri.DatePart) SqlField
- func DateToUnix(date interface{}) SqlField
- func Eq(exp1, exp2 interface{}) xqi.SqlConditionItem
- func ExprField(sqlExpress string, alias string) xqi.SqlField
- func ExprTable(sqlExpress string, alias string) xqi.SqlTable
- func Field(expr interface{}) xqi.SqlField
- func Gt(exp1, exp2 interface{}) xqi.SqlConditionItem
- func Gte(exp1, exp2 interface{}) xqi.SqlConditionItem
- func If(expr interface{}, trueValue, falseValue interface{}) SqlField
- func IfNull(expr interface{}, nullVal interface{}) SqlField
- func In(exp1, exp2 interface{}) xqi.SqlConditionItem
- func Like(exp1, exp2 interface{}) xqi.SqlConditionItem
- func Lt(exp1, exp2 interface{}) xqi.SqlConditionItem
- func Lte(exp1, exp2 interface{}) xqi.SqlConditionItem
- func Max(expr interface{}) SqlField
- func Min(expr interface{}) SqlField
- func Neq(exp1, exp2 interface{}) xqi.SqlConditionItem
- func NotIn(exp1, exp2 interface{}) xqi.SqlConditionItem
- func NotLike(exp1, exp2 interface{}) xqi.SqlConditionItem
- func On(items ...xqi.SqlLogic) xqi.SqlCondition
- func OpDiv(v1, v2 interface{}) SqlField
- func OpMul(v1, v2 interface{}) SqlField
- func OpPlus(v1, v2 interface{}) SqlField
- func OpSub(v1, v2 interface{}) SqlField
- func Or(items ...xqi.SqlLogic) xqi.SqlCondition
- func Static(v interface{}) xqi.SqlStaticExpr
- func Substring(str interface{}, from, len int) SqlField
- func Sum(expr interface{}) SqlField
- func UnixToDate(unix interface{}) SqlField
- func Var(varName string, v interface{}) xqi.SqlVarExpr
- func Where(items ...xqi.SqlLogic) xqi.SqlCondition
- func Xor(items ...xqi.SqlLogic) xqi.SqlCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Case ¶
func Case(expr interface{}, cases map[interface{}]interface{}, caseElse ...interface{}) SqlField
func DateFormat ¶
func DateFormat(expr interface{}, format string) SqlField
func DateToUnix ¶
func DateToUnix(date interface{}) SqlField
func Eq ¶
func Eq(exp1, exp2 interface{}) xqi.SqlConditionItem
func Gt ¶
func Gt(exp1, exp2 interface{}) xqi.SqlConditionItem
func Gte ¶
func Gte(exp1, exp2 interface{}) xqi.SqlConditionItem
func In ¶
func In(exp1, exp2 interface{}) xqi.SqlConditionItem
func Like ¶
func Like(exp1, exp2 interface{}) xqi.SqlConditionItem
func Lt ¶
func Lt(exp1, exp2 interface{}) xqi.SqlConditionItem
func Lte ¶
func Lte(exp1, exp2 interface{}) xqi.SqlConditionItem
func Neq ¶
func Neq(exp1, exp2 interface{}) xqi.SqlConditionItem
func NotIn ¶
func NotIn(exp1, exp2 interface{}) xqi.SqlConditionItem
func NotLike ¶
func NotLike(exp1, exp2 interface{}) xqi.SqlConditionItem
func UnixToDate ¶
func UnixToDate(unix interface{}) SqlField
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.