Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSearch ¶
type BaseSearch struct{}
BaseSearch implements Where, Order and Limit, generically for searches
func (*BaseSearch) Limit ¶
func (*BaseSearch) Limit(q string) string
Limit returns q + "LIMIT ?,?" for paging
type Search ¶
type Search interface { ToQuery() string Where(string, ...*SortTerm) string Order(string, ...*SortTerm) string Limit(string) string }
Search defines an interface for structs that can be used in sql queries
Click to show internal directories.
Click to hide internal directories.