helper

package
v0.2.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 2 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IfClause

func IfClause(conds []Cond) string

func JoinSetBuilder added in v0.1.27

func JoinSetBuilder(src *strings.Builder, setValue strings.Builder)

func JoinWhereBuilder added in v0.1.27

func JoinWhereBuilder(src *strings.Builder, whereValue strings.Builder)

func SetClause

func SetClause(conds []string) string

func WhereClause

func WhereClause(conds []string) string

Types

type Cond

type Cond struct {
	Cond   bool
	Result string
}

type JoinTblExpr added in v0.2.44

type JoinTblExpr struct {
	clause.Join
	TableExpr clause.Expression
}

JoinTblExpr join clause with table expression(sub query...)

func NewJoinTblExpr added in v0.2.44

func NewJoinTblExpr(join clause.Join, tbExpr clause.Expression) JoinTblExpr

func (JoinTblExpr) Build added in v0.2.44

func (join JoinTblExpr) Build(builder clause.Builder)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL