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 ¶
JoinSetBuilder join set builder
func JoinWhereBuilder ¶
JoinWhereBuilder join where builder
Types ¶
type Field ¶
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 ¶
type JoinTblExpr struct {
clause.Join
TableExpr clause.Expression
}
JoinTblExpr join clause with table expression(sub query...)
func NewJoinTblExpr ¶
func NewJoinTblExpr(join clause.Join, tbExpr clause.Expression) JoinTblExpr
NewJoinTblExpr create new join table expr
type Object ¶
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.