where

package
v0.0.0-...-2c5f5e2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddOptTimestampInt2Str   addOp = "TimestampIntToStr"
	AddOptTimestampStr2Int64 addOp = "TimestampStrToInt64"
)
View Source
const (
	OpEQ        cmpOp = "="
	OpNEQ       cmpOp = "!="
	OpGT        cmpOp = ">"
	OpGTE       cmpOp = ">="
	OpLT        cmpOp = "<"
	OpLTE       cmpOp = "<="
	OpIN        cmpOp = "in"
	OpNIN       cmpOp = "not in"
	OpLIKE      cmpOp = "like"
	OpRLIKE     cmpOp = "like abc%"
	OpLLIKE     cmpOp = "like %abc"
	OpNLIKE     cmpOp = "not like"
	OpLNLIKE    cmpOp = "not like %abc"
	OpRNLIKE    cmpOp = "not like abc%"
	OpFINDINSET cmpOp = "find in set"
	OpRawSql    cmpOp = "sql"
)
View Source
const SearchTag = "search"

Variables

This section is empty.

Functions

func AddOptExist

func AddOptExist(op addOp) bool

func ExtendAddOp

func ExtendAddOp(addOpName string, fn func(interface{}) interface{}, options ...bool)

func ExtendOp

func ExtendOp(op string, fn func(wv *WhereVal, op cmpOp, field string, value interface{}), cover ...bool)

func OpExist

func OpExist(op cmpOp) bool

Types

type WhereVal

type WhereVal struct {
	Sql   string
	Value []interface{}
}

func Make

func Make(cond interface{}) *WhereVal

func (*WhereVal) HasCondition

func (wv *WhereVal) HasCondition() bool

Jump to

Keyboard shortcuts

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