db

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq(v interface{}) squirrel.Sqlizer

Eq represents an equality comparison.

func Func

func Func[T interface{}](name string, params ...T) squirrel.Sqlizer

Func represents a SQL function call.

func Gt

func Gt(v interface{}) squirrel.Sqlizer

Gt represents a greater-than comparison.

func Gte

func Gte(v interface{}) squirrel.Sqlizer

Gte represents a greater-than-or-equal comparison.

func ILike

func ILike(v interface{}) squirrel.Sqlizer

ILike represents a ILIKE comparison.

func In

func In[T interface{}](v ...T) squirrel.Sqlizer

In represents an IN operator. The value must be variadic.

func IsNotNull

func IsNotNull() squirrel.Sqlizer

IsNotNull represents an IS NOT NULL comparison.

func IsNull

func IsNull() squirrel.Sqlizer

IsNull represents an IS NULL comparison.

func Like

func Like(v interface{}) squirrel.Sqlizer

Like represents a LIKE comparison.

func Lt

func Lt(v interface{}) squirrel.Sqlizer

Lt represents a less-than comparison.

func Lte

func Lte(v interface{}) squirrel.Sqlizer

Lte represents a less-than-or-equal comparison.

func NotEq

func NotEq(v interface{}) squirrel.Sqlizer

NotEq represents a not-equal comparison.

func NotILike

func NotILike(v interface{}) squirrel.Sqlizer

NotILike represents a NOT ILIKE comparison.

func NotIn

func NotIn[T interface{}](v ...T) squirrel.Sqlizer

NotIn represents a NOT IN operator. The value must be variadic.

func NotLike

func NotLike(v interface{}) squirrel.Sqlizer

NotLike represents a NOT LIKE comparison.

func Raw

func Raw(sql string, args ...interface{}) squirrel.Sqlizer

Raw represents a raw SQL expression.

Types

type And

type And = squirrel.And

type Cond

type Cond map[interface{}]interface{}

Cond is a map of conditions.

func (Cond) ToSql

func (c Cond) ToSql() (string, []interface{}, error)

type Or

type Or = squirrel.Or

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL