Skip to main content

Module query

Module query 

Source
Expand description

What the list view asks for: the page, the search text and the sort.

Structs§

ListQuery
What the list view asks a resource for. Only search and sort come from the user, through the query string.
Page
One page of rows and the total number of matching rows, for the pager.

Enums§

Direction
The sort direction of a list.

Functions§

escape_like
Escapes %, _ and \ in search text, so a LIKE pattern matches them literally. Use it inside %...% and pass ESCAPE '\\' where the database needs the escape character named.