Documentation ¶
Index ¶
- Constants
- func ApplyBoolField(fieldName string, values ...string) (conds string, args []interface{}, rErr error)
- func ApplyLimit(query, value string) (queryResult string, limit int64, rErr error)
- func ApplyNumField(fieldName string, values ...string) (conds string, args []interface{}, rErr error)
- func ApplyOffset(query, value string) (queryResult string, offset int64, rErr error)
- func ApplySorter(allowedFields map[string]bool, values ...string) (queryResult string, rErr error)
- func ApplyTextField(fieldName string, values ...string) (conds string, args []interface{}, rErr error)
- func SortFieldAndDirection(allowedFields map[string]bool, value string) (col, dir string, err error)
Constants ¶
View Source
const DefaultLimit = 10
View Source
const DefaultLimitStr = " LIMIT 10"
Variables ¶
This section is empty.
Functions ¶
func ApplyBoolField ¶
func ApplyBoolField(fieldName string, values ...string) (conds string, args []interface{}, rErr error)
ApplyBoolField only applies first value from values.
func ApplyLimit ¶
func ApplyNumField ¶
func ApplyOffset ¶
func ApplySorter ¶
func ApplyTextField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.