Documentation
¶
Index ¶
- type BetweenExpr
- type BinaryExpr
- type Expr
- func And(exprs ...Expr) Expr
- func Between[T any](col *table.Column[T], start, end T) Expr
- func Eq[T any](col *table.Column[T], value T) Expr
- func Ge[T any](col *table.Column[T], value T) Expr
- func Gt[T any](col *table.Column[T], value T) Expr
- func ILike(col *table.Column[string], pattern string) Expr
- func In[T any](col *table.Column[T], values ...T) Expr
- func IsNotNull[T any](col *table.Column[T]) Expr
- func IsNull[T any](col *table.Column[T]) Expr
- func Le[T any](col *table.Column[T], value T) Expr
- func Like(col *table.Column[string], pattern string) Expr
- func Lt[T any](col *table.Column[T], value T) Expr
- func Ne[T any](col *table.Column[T], value T) Expr
- func NotBetween[T any](col *table.Column[T], start, end T) Expr
- func NotIn[T any](col *table.Column[T], values ...T) Expr
- func NotLike(col *table.Column[string], pattern string) Expr
- func Or(exprs ...Expr) Expr
- func Raw(sql string, args ...interface{}) Expr
- type InExpr
- type LikeExpr
- type LogicalExpr
- type RawExpr
- type UnaryExpr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetweenExpr ¶
BetweenExpr represents BETWEEN operations
func (*BetweenExpr) ToSQL ¶
func (b *BetweenExpr) ToSQL() (string, []interface{})
type BinaryExpr ¶
BinaryExpr represents a binary operation (=, !=, <, >, etc.)
func (*BinaryExpr) ToSQL ¶
func (b *BinaryExpr) ToSQL() (string, []interface{})
type Expr ¶
type Expr interface {
// ToSQL converts the expression to SQL with placeholders
ToSQL() (string, []interface{})
}
Expr represents a SQL expression (WHERE, HAVING, etc.)
func NotBetween ¶
NotBetween creates a NOT BETWEEN expression
type LogicalExpr ¶
LogicalExpr represents AND/OR combinations
func (*LogicalExpr) ToSQL ¶
func (l *LogicalExpr) ToSQL() (string, []interface{})
Click to show internal directories.
Click to hide internal directories.