Query Object
Example
Query Interface
The query object needs to implement the Query
interface for the construction of paging clause and sorting clause:
The PageQuery
struct provides a standard implementation for the query structs.
Fields Definition
The query object is used to map the dynamic part of the SQL statements, such as filter conditions, pagination, and sorting.
Each field in the query object is used to map a query condition.
Check the following docs for how to define the fields in GoooQo:
Predicate-Suffix FieldLogic-Suffix FieldSubquery FieldE-R Query FieldCustom Condition FieldLast updated