where

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayElementEq

func ArrayElementEq(field string, element string, value interface{}) string

func BetweenInt64

func BetweenInt64(field string, from int64, until int64) string

func ConcatMatchKV

func ConcatMatchKV(key, value string) string

func Eq

func Eq(field, value interface{}) string

func Glob

func Glob(field string, query string) string

Glob ...

func GlobExpandSimple

func GlobExpandSimple(value, prefix string, result *[]string) error

workaraund for Grafana multi-value variables, expand S{a,b,c}E to [SaE,SbE,ScE]

func GlobToRegexp

func GlobToRegexp(g string) string

func HasPrefix

func HasPrefix(field, prefix string) string

func HasPrefixAndNotEq

func HasPrefixAndNotEq(field, prefix string) string

func HasPrefixBytes

func HasPrefixBytes(field, prefix []byte) string

func HasWildcard

func HasWildcard(target string) bool

func In

func In(field string, list []string) string

func InTable

func InTable(field string, table string) string

func IndexLastWildcard

func IndexLastWildcard(target string) int

func IndexWildcard

func IndexWildcard(target string) int

func Like

func Like(field, s string) string

func Match

func Match(field string, key, value string) string

func NonRegexpPrefix

func NonRegexpPrefix(expr string) string

func TreeGlob

func TreeGlob(field string, query string) string

TreeGlob ...

Types

type Where

type Where struct {
	// contains filtered or unexported fields
}

func New

func New() *Where

func (*Where) And

func (w *Where) And(exp string)

func (*Where) Andf

func (w *Where) Andf(format string, obj ...interface{})

func (*Where) Or

func (w *Where) Or(exp string)

func (*Where) PreWhereSQL

func (w *Where) PreWhereSQL() string

func (*Where) SQL

func (w *Where) SQL() string

func (*Where) String

func (w *Where) String() string

Jump to

Keyboard shortcuts

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