expr

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(conds ...interface{}) (g primitive.Group)

And :

func As

func As(field interface{}, alias string) (as primitive.As)

As :

func Asc

func Asc(field interface{}) (s primitive.Sort)

Asc :

func Average

func Average(field interface{}) (a primitive.Aggregate)

Average :

func Between

func Between(field, from, to interface{}) (c primitive.C)

Between :

func Bool

func Bool(val bool) (o primitive.TypeSafe)

Bool :

func Case

func Case() *primitive.Case

Case :

func CastAs

func CastAs(value interface{}, datatype primitive.DataType) (cast primitive.CastAs)

CastAs :

func Collate

func Collate(collate string, col interface{}, charset ...string) (o primitive.Encoding)

Collate :

func Column

func Column(name string, alias ...string) (c primitive.Column)

Column :

func ColumnValue

func ColumnValue(field string, value interface{}) (kv primitive.KV)

ColumnValue :

func Count

func Count(field interface{}) (a primitive.Aggregate)

Count :

func Decrement

func Decrement(field string, inc uint) primitive.Math

Decrement :

func Desc

func Desc(field interface{}) (s primitive.Sort)

Desc :

func Equal

func Equal(field, value interface{}) (c primitive.C)

Equal :

func Exists

func Exists(subquery interface{}) (grp primitive.Group)

Exists :

func Field

func Field(name string, val interface{}) (f primitive.Field)

Field :

func Float32

func Float32(val float32) (o primitive.TypeSafe)

Float32 :

func Float64

func Float64(val float64) (o primitive.TypeSafe)

Float64 :

func Func

func Func(name string, value interface{}, others ...interface{}) (f primitive.Func)

Func :

func GreaterOrEqual

func GreaterOrEqual(field, value interface{}) (c primitive.C)

GreaterOrEqual :

func GreaterThan

func GreaterThan(field, value interface{}) (c primitive.C)

GreaterThan :

func In

func In(field, values interface{}) (c primitive.C)

In :

func Increment

func Increment(field string, inc uint) primitive.Math

Increment :

func Int

func Int(val int) (o primitive.TypeSafe)

Int :

func Int16

func Int16(val int16) (o primitive.TypeSafe)

Int16 :

func Int32

func Int32(val int32) (o primitive.TypeSafe)

Int32 :

func Int64

func Int64(val int64) (o primitive.TypeSafe)

Int64 :

func Int8

func Int8(val int8) (o primitive.TypeSafe)

Int8 :

func IsNull

func IsNull(field string) (c primitive.Nil)

IsNull :

func JSONColumn

func JSONColumn(column string, nested ...string) (c primitive.JSONColumn)

JSONColumn :

func JSON_CONTAINS

func JSON_CONTAINS(target, candidate interface{}, paths ...string) (f primitive.JSONFunc)

JSON_CONTAINS :

func JSON_EXTRACT

func JSON_EXTRACT(doc interface{}, path string, otherPaths ...string) (f primitive.JSONFunc)

JSON_EXTRACT :

func JSON_INSERT

func JSON_INSERT(doc interface{}, path string, value interface{}, pathValues ...interface{}) (f primitive.JSONFunc)

JSON_INSERT :

func JSON_KEYS

func JSON_KEYS(doc interface{}, paths ...string) (f primitive.JSONFunc)

JSON_KEYS :

func JSON_QUOTE

func JSON_QUOTE(doc interface{}) (f primitive.JSONFunc)

JSON_QUOTE :

func JSON_REMOVE

func JSON_REMOVE(doc interface{}, path string, paths ...string) (f primitive.JSONFunc)

JSON_REMOVE :

func JSON_REPLACE

func JSON_REPLACE(doc interface{}, path string, value interface{}, pathValues ...interface{}) (f primitive.JSONFunc)

JSON_REPLACE :

func JSON_SET

func JSON_SET(doc interface{}, path string, value interface{}, pathValues ...interface{}) (f primitive.JSONFunc)

JSON_SET :

func JSON_TYPE

func JSON_TYPE(val interface{}) (f primitive.JSONFunc)

JSON_TYPE :

func JSON_UNQUOTE

func JSON_UNQUOTE(doc interface{}) (f primitive.JSONFunc)

JSON_UNQUOTE :

func JSON_VALID

func JSON_VALID(val interface{}) (f primitive.JSONFunc)

JSON_VALID :

func LesserOrEqual

func LesserOrEqual(field, value interface{}) (c primitive.C)

LesserOrEqual :

func LesserThan

func LesserThan(field, value interface{}) (c primitive.C)

LesserThan :

func Like

func Like(field, value interface{}) (p primitive.L)

Like :

func Max

func Max(field interface{}) (a primitive.Aggregate)

Max :

func MemberOf

func MemberOf(val interface{}, arr interface{}) (f primitive.JSONFunc)

MemberOf : mysql 8.0.17

func Min

func Min(field interface{}) (a primitive.Aggregate)

Min :

func Multiply

func Multiply(fields ...interface{}) (grp primitive.Group)

Multiply :

func NotBetween

func NotBetween(field, from, to interface{}) (c primitive.C)

NotBetween :

func NotEqual

func NotEqual(field, value interface{}) (c primitive.C)

NotEqual :

func NotExists

func NotExists(subquery interface{}) (grp primitive.Group)

NotExists :

func NotIn

func NotIn(field, values interface{}) (c primitive.C)

NotIn :

func NotLike

func NotLike(field, value interface{}) (p primitive.L)

NotLike :

func NotNull

func NotNull(field string) (c primitive.Nil)

NotNull :

func Or

func Or(conds ...interface{}) (g primitive.Group)

Or :

func Raw

func Raw(value string) (r primitive.Raw)

Raw :

func ST_AsText

func ST_AsText(g interface{}) (f spatial.Func)

ST_AsText :

func ST_Distance

func ST_Distance(g1, g2 interface{}, unit ...string) (f spatial.Func)

column, value, ST_GeomFromText(column), ST_GeomFromText(value) ST_Distance :

func ST_Equals

func ST_Equals(g1, g2 interface{}) (f spatial.Func)

ST_Equals :

func ST_GeomFromText

func ST_GeomFromText(g interface{}, srid ...uint) (f spatial.Func)

ST_GeomFromText :

func ST_Intersects

func ST_Intersects(g1, g2 interface{}) (f spatial.Func)

ST_Intersects :

func ST_IsValid

func ST_IsValid(g interface{}) (f spatial.Func)

ST_IsValid :

func ST_Within

func ST_Within(g1, g2 interface{}) (f spatial.Func)

ST_Within :

func String

func String(val string) (o primitive.TypeSafe)

String :

func Sum

func Sum(field interface{}) (a primitive.Aggregate)

Sum :

func Uint

func Uint(val uint) (o primitive.TypeSafe)

Uint :

func Uint16

func Uint16(val uint16) (o primitive.TypeSafe)

Uint16 :

func Uint32

func Uint32(val uint32) (o primitive.TypeSafe)

Uint32 :

func Uint64

func Uint64(val uint64) (o primitive.TypeSafe)

Uint64 :

func Uint8

func Uint8(val uint8) (o primitive.TypeSafe)

Uint8 :

func Union

func Union(stmt1 selectStmt, stmt2 selectStmt, others ...selectStmt) (grp primitive.Group)

Union :

Types

This section is empty.

Jump to

Keyboard shortcuts

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