Filtering results

For simple matching if a value is present (e.g. an id) supply the field name and required value. You can also use a number of operators in the value field for comparison:

The string comparison is case insensitive.

Aggregate Functions

Instead of retrieving data entries you can use aggregate functions that are prefixed with the dollar sign $ and followed by the column name:

All filters are applied before the aggregation, so for example to get the average of all values larger than a certain number you can use {value:'lt:number','$avg':value}.

Selecting Results

To specify the returned columns you can use $select with a comma delimited list of the column names you want to retrieve:


Sorting Results

You can order the result with $order:'columnName:asc or $order:'columnName:desc respectively and $limit the entries returned:


GitRows’ $limit behaves like MySQL’s equivalent: If you supply one number, this will be maximum number of rows returned starting from the entry at index 0, if you give two comma delimited numbers, the first will be the offset and the second the number of rows.