where

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatMatchKV added in v0.13.0

func ConcatMatchKV(key, value string) string

func DateBetween

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

func Eq

func Eq(field, value interface{}) string

func Glob

func Glob(field string, query string) string

Glob ...

func GlobExpandSimple added in v0.13.0

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 added in v0.13.0

func InTable(field string, table string) string

func IndexLastWildcard added in v0.13.0

func IndexLastWildcard(target string) int

func IndexWildcard added in v0.13.0

func IndexWildcard(target string) int

func Like added in v0.13.0

func Like(field, s string) string

func Match

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

func NonRegexpPrefix

func NonRegexpPrefix(expr string) string

func TimestampBetween

func TimestampBetween(field string, from int64, until int64) 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