Documentation ¶
Index ¶
- func CheckObject(obj Object) error
- func IfClause(conds []Cond) string
- func JoinSetBuilder(src *strings.Builder, setValue strings.Builder)
- func JoinWhereBuilder(src *strings.Builder, whereValue strings.Builder)
- func SetClause(conds []string) string
- func WhereClause(conds []string) string
- type Cond
- type Field
- type JoinTblExpr
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinSetBuilder ¶ added in v0.1.27
JoinSetBuilder join set builder
func JoinWhereBuilder ¶ added in v0.1.27
JoinWhereBuilder join where builder
Types ¶
type Field ¶ added in v0.3.0
type Field interface { // Name return field name Name() string // Type return field type Type() string // ColumnName return column name ColumnName() string // GORMTag return gorm tag GORMTag() string // JSONTag return json tag JSONTag() string // Tag return field tag Tag() string // Comment return comment Comment() string }
Field a field interface
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
NewJoinTblExpr create new join table expr
func (JoinTblExpr) Build ¶ added in v0.2.44
func (join JoinTblExpr) Build(builder clause.Builder)
Build ...
type Object ¶ added in v0.3.0
type Object interface { // TableName return table name TableName() string // StructName return struct name StructName() string // FileName return field name FileName() string // ImportPkgPaths return need import package path ImportPkgPaths() []string // Fields return field array Fields() []Field }
Object an object interface
Click to show internal directories.
Click to hide internal directories.