Documentation ¶
Overview ¶
The op package contains operation and aggregation nodes that can be added to a QueryBuilder.
Index ¶
- func Abs(n ...interface{}) *OperationNode
- func Add(args ...interface{}) *OperationNode
- func All() *OperationNode
- func And(args ...interface{}) *OperationNode
- func Avg(n NodeI) *OperationNode
- func BitAnd(arg1, arg2 interface{}) *OperationNode
- func BitInvert(n interface{}) *OperationNode
- func BitOr(arg1, arg2 interface{}) *OperationNode
- func BitShiftLeft(arg1, arg2 interface{}) *OperationNode
- func BitShiftRight(arg1, arg2 interface{}) *OperationNode
- func BitXor(arg1, arg2 interface{}) *OperationNode
- func Ceil(n ...interface{}) *OperationNode
- func Contains(arg1 interface{}, arg2 string) *OperationNode
- func Count(nodes ...NodeI) *OperationNode
- func DateAddSeconds(arg1 interface{}, arg2 interface{}) *OperationNode
- func Divide(args ...interface{}) *OperationNode
- func EndsWith(arg1 interface{}, arg2 string) *OperationNode
- func Equal(arg1 interface{}, arg2 interface{}) *OperationNode
- func Exp(n ...interface{}) *OperationNode
- func Floor(n ...interface{}) *OperationNode
- func Function(funcName string, args ...interface{}) *OperationNode
- func GreaterOrEqual(arg1 interface{}, arg2 interface{}) *OperationNode
- func GreaterThan(arg1 interface{}, arg2 interface{}) *OperationNode
- func In(n NodeI, what ...interface{}) *OperationNode
- func IsNotNull(n interface{}) *OperationNode
- func IsNull(n interface{}) *OperationNode
- func LessOrEqual(arg1 interface{}, arg2 interface{}) *OperationNode
- func LessThan(arg1 interface{}, arg2 interface{}) *OperationNode
- func Like(n interface{}, pattern string) *OperationNode
- func Ln(n interface{}) *OperationNode
- func Max(n NodeI) *OperationNode
- func Min(n NodeI) *OperationNode
- func Mod(args ...interface{}) *OperationNode
- func Multiply(args ...interface{}) *OperationNode
- func Negative(n interface{}) *OperationNode
- func None() *OperationNode
- func Not(n interface{}) *OperationNode
- func NotEqual(arg1 interface{}, arg2 interface{}) *OperationNode
- func NotIn(n NodeI, what ...interface{}) *OperationNode
- func Or(args ...interface{}) *OperationNode
- func Power(n ...interface{}) *OperationNode
- func Round(n ...interface{}) *OperationNode
- func Sqrt(n interface{}) *OperationNode
- func StartsWith(arg1 interface{}, arg2 string) *OperationNode
- func Subquery(b QueryBuilderI) *SubqueryNode
- func Subtract(args ...interface{}) *OperationNode
- func Sum(n NodeI) *OperationNode
- func Xor(arg1, arg2 interface{}) *OperationNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All() *OperationNode
All is a placeholder for when you need to return something that represents selecting everything
func BitShiftLeft ¶
func BitShiftLeft(arg1, arg2 interface{}) *OperationNode
func BitShiftRight ¶
func BitShiftRight(arg1, arg2 interface{}) *OperationNode
func DateAddSeconds ¶ added in v0.10.0
func DateAddSeconds(arg1 interface{}, arg2 interface{}) *OperationNode
func Function ¶
func Function(funcName string, args ...interface{}) *OperationNode
Function lets you use any custom function which your database driver supports. Simply tell it the name and give it the arguments, and the result of the function will be used in the query.
func GreaterOrEqual ¶
func GreaterOrEqual(arg1 interface{}, arg2 interface{}) *OperationNode
func GreaterThan ¶
func GreaterThan(arg1 interface{}, arg2 interface{}) *OperationNode
func In ¶
func In(n NodeI, what ...interface{}) *OperationNode
In tests to see if the given node is in the "what" list
func LessOrEqual ¶
func LessOrEqual(arg1 interface{}, arg2 interface{}) *OperationNode
func StartsWith ¶ added in v0.0.9
func StartsWith(arg1 interface{}, arg2 string) *OperationNode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.