querying

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	//SortOrderDesc oder field descending
	SortOrderDesc = "desc"

	//SortOrderASC oder dield ascending
	SortOrderASC = "asc"
)

Variables

This section is empty.

Functions

func AddSorting

func AddSorting(order string, field string, q []qm.QueryMod) []qm.QueryMod

AddSorting adds a sorting clause to the querymod, if specified

func GetSQLKeyString

func GetSQLKeyString(sql string, keys map[string]string) string

GetSQLKeyString will replace the given keys in the sql string

func IsSort

func IsSort(order string, field string) (bool, string)

IsSort checks if sortorder specified and returns the sql-ordering

func Like

func Like(s string) string

Like returns the filterCriteria prefixed and suffixed with the like operator

Types

This section is empty.

Jump to

Keyboard shortcuts

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