Documentation ¶
Index ¶
- func AboveOpr(name string, val interface{}) string
- func BelowOpr(name string, val interface{}) string
- func EqualOpr(name string, val interface{}) string
- func InOpr(name string, val interface{}) string
- func LikeOpr(name string, val interface{}) string
- func NotEqualOpr(name string, val interface{}) string
- func NotInOpr(name string, val interface{}) string
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { GetTableName() string BuildCreateSchema() (string, error) BuildDropSchema() (string, error) BuildInsert() (string, error) BuildUpdate() (string, error) BuildDelete() (string, error) BuildQuery(filter model.Filter) (string, error) BuildCount(filter model.Filter) (string, error) BuildBatchQuery(filter model.Filter) (string, error) GetRelationTableName(fieldName string, relationInfo model.Model) string BuildCreateRelationSchema(fieldName string, relationInfo model.Model) (string, error) BuildDropRelationSchema(fieldName string, relationInfo model.Model) (string, error) BuildInsertRelation(fieldName string, relationInfo model.Model) (string, error) BuildDeleteRelation(fieldName string, relationInfo model.Model) (string, string, error) BuildQueryRelation(fieldName string, relationInfo model.Model) (string, error) GetInitializeValue(field model.Field) (interface{}, error) }
Builder orm builder
Click to show internal directories.
Click to hide internal directories.