querystr

package
v0.0.0-...-3fc3a86 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: MIT, MIT Imports: 7 Imported by: 0

README

querystr

Documentation

Index

Constants

View Source
const (
	KeyOrder  = "q-order"
	KeyLimit  = "q-limit"
	KeyOffset = "q-offset"
)

Variables

This section is empty.

Functions

func Query

func Query(src interface{}, tableName string, values url.Values) (sql string, args []interface{}, err error)

Types

type Operator

type Operator string
const (
	Lt  Operator = "lt"
	Lte Operator = "lte"
	Gt  Operator = "gt"
	Gte Operator = "gte"
	In  Operator = "in"
)

type Order

type Order string
const (
	ASC  Order = "asc"
	DESC Order = "desc"
)

Jump to

Keyboard shortcuts

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