Skip to main content

Constants for the fields of the /get/records request.

Option fields

encoding

Constants for encoding.

pub const ARROW: &str = “arrow”;
pub const BINARY: &str = “binary”;
pub const GEOJSON: &str = “geojson”;
pub const JSON: &str = “json”;

options

Constants for options.

pub const ASCENDING: &str = “ascending”;
pub const DESCENDING: &str = “descending”;
pub const EXPRESSION: &str = “expression”;

Filter expression to apply to the table.

pub const FALSE: &str = “false”;
pub const FAST_INDEX_LOOKUP: &str = “fast_index_lookup”;

Indicates if indexes should be used to perform the lookup for a given expression if possible. Only applicable if there is no sorting, the expression contains only equivalence comparisons based on existing tables indexes and the range of requested values is from [0 to END_OF_SET].

pub const SORT_BY: &str = “sort_by”;

Column that the data should be sorted by. Empty by default (i.e. no sorting is applied).

pub const SORT_ORDER: &str = “sort_order”;

String indicating how the returned values should be sorted - ascending or descending. If sort_order is provided, sort_by has to be provided.

pub const TRUE: &str = “true”;