Documentation
¶
Index ¶
- Constants
- func FalseExpr() clause.NamedExpr
- func GroupByClause(tx *gorm.DB) (groupByClause clause.GroupBy, ok bool)
- func LimitClause(tx *gorm.DB) (limitClause clause.Limit, ok bool)
- func NoWhereClause(tx *gorm.DB) bool
- func OrderByClause(tx *gorm.DB) (orderByClause clause.OrderBy, ok bool)
- func TrueExpr() clause.NamedExpr
- func WhereClause(tx *gorm.DB) (whereClause clause.Where, ok bool)
- type Config
- func (cfg *Config) Clause(tx *gorm.DB)
- func (cfg *Config) GroupByClause(tx *gorm.DB)
- func (cfg *Config) Initialize(tx *gorm.DB) error
- func (cfg *Config) LimitClause(tx *gorm.DB)
- func (cfg *Config) Name() string
- func (cfg *Config) OrderByClause(tx *gorm.DB)
- func (cfg *Config) WhereClause(tx *gorm.DB)
Constants ¶
View Source
const ( Where = "WHERE" Returning = "RETURNING" OnConflict = "ON CONFLICT" From = "FROM" Set = "SET" Select = "SELECT" Limit = "LIMIT" OrderBy = "ORDER BY" GroupBy = "GROUP BY" )
gorm support clause
Variables ¶
This section is empty.
Functions ¶
func NoWhereClause ¶
Types ¶
type Config ¶
type Config struct { PluginName string // effect on where clause LikeNoPrefixMatch bool // ignore or warn of (column LIKE '%which') IndexColumnNoExpr bool // ignore or warn of indexed_column use expr or function InExprMaxValuesLen *int BinaryExprStrongType bool NoRegexp bool // effect on where clause on raw and row AllowWrapRawOrRowByClause bool // effect on orderBy clause OrderByNoIndexColumn bool }
func (*Config) GroupByClause ¶
GroupByClause GROUP BY and HAVING
func (*Config) LimitClause ¶
LimitClause LIMIT and OFFSET
func (*Config) OrderByClause ¶
OrderByClause ORDER BY column or ORDER BY columnList
func (*Config) WhereClause ¶
WhereClause Expr or ExprList
Click to show internal directories.
Click to hide internal directories.