where

package
Version: v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 1 Imported by: 9

Documentation

Overview

Package where is syntatic sugar for building where query.

Index

Constants

This section is empty.

Variables

View Source
var (
	// And compares other filters using and.
	And = rel.And

	// Or compares other filters using or.
	Or = rel.Or

	// Not wraps filters using not.
	// It'll negate the filter type if possible.
	Not = rel.Not

	// Eq expression field equal to value.
	Eq = rel.Eq

	// Ne compares that left value is not equal to right value.
	Ne = rel.Ne

	// Lt compares that left value is less than to right value.
	Lt = rel.Lt

	// Lte compares that left value is less than or equal to right value.
	Lte = rel.Lte

	// Gt compares that left value is greater than to right value.
	Gt = rel.Gt

	// Gte compares that left value is greater than or equal to right value.
	Gte = rel.Gte

	// Nil check whether field is nil.
	Nil = rel.Nil

	// NotNil check whether field is not nil.
	NotNil = rel.NotNil

	// In check whethers value of the field is included in values.
	In = rel.In

	// InInt check whethers integer value of the field is included in values.
	InInt = rel.InInt

	// InUint check whethers unsigned integer value of the field is included in values.
	InUint = rel.InUint

	// InString check whethers string value of the field is included in values.
	InString = rel.InString

	// Nin check whethers value of the field is not included in values.
	Nin = rel.Nin

	// NinInt check whethers integer value of the field is not included in values.
	NinInt = rel.NinInt

	// NinUint check whethers unsigned integer value of the field is not included in values.
	NinUint = rel.NinUint

	// NinString check whethers string value of the field is not included in values.
	NinString = rel.NinString

	// Like compares value of field to match string pattern.
	Like = rel.Like

	// NotLike compares value of field to not match string pattern.
	NotLike = rel.NotLike

	// Fragment add custom filter.
	Fragment = rel.FilterFragment
)

Functions

This section is empty.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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