query

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQueryParts

func AddQueryParts(q string, parts ...QueryOpts) string

func GetWhereParts added in v1.13.0

func GetWhereParts(filter *VersionFilter) (string, []any)

Types

type QueryOpts

type QueryOpts interface {
	GetParts() QueryParts
}

type QueryParts

type QueryParts struct {
	Where []string
	Order []string
	Limit []string
}

type Sort

type Sort int
const (
	SortUndefined Sort = iota
	SortAsc
	SortDesc
)

func SortFromString

func SortFromString(s string) Sort

func (Sort) String

func (s Sort) String() string

type VersionFilter added in v1.13.0

type VersionFilter struct {
	Application string
	Location    string
	Environment string
	Day         string
}

Jump to

Keyboard shortcuts

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