Crate cql2

Source
Expand description

Parse and transform Common Query Language 2 (CQL2).

Structs§

DateRange
Struct to hold a range of timestamps.
SqlQuery
A SQL query, broken into the query and parameters.
Validator
Validator for cql2 json schema

Enums§

Error
Crate-specific error enum.
Expr
A CQL2 expression.
Geometry
Crate-specific geometry type to hold either WKT or GeoJSON.

Constants§

ARITHOPS
Arithmetic Operators
ARRAYOPS
Array Operators
BOOLOPS
Boolean Operators
CMPOPS
Comparison Operators
EQOPS
Equality Operators
SPATIALOPS
Spatial Operators
TEMPORALOPS
Temporal Operators

Traits§

ToDuckSQL
Traits for generating SQL for DuckDB with Spatial Extension

Functions§

parse_file
Reads a file and returns its contents as a CQL2 expression;
parse_json
Parses a cql2-json string into a CQL2 expression.
parse_text
Parses a cql2-text string into a CQL2 expression.
spatial_op
Run a spatial operation.
temporal_op
Run a temporal operation.