int ZOOM_query_cql2rpn(ZOOM_query s, const char *cql_str, ZOOM_connection conn); int ZOOM_query_ccl2rpn(ZOOM_query s, const char *ccl_str, const char *config, int *ccl_error, const char **error_string, int *error_pos);
ZOOM_query_cql2rpn
translates the CQL string,
client-side, into RPN which may be passed to the server.
This is useful for server's that don't themselves
support CQL, for which ZOOM_query_cql
is useless.
`conn' is used only as a place to stash diagnostics if compilation
fails; if this information is not needed, a null pointer may be used.
The CQL conversion is driven by option cqlfile
from
connection conn. This specifies a conversion file (eg pqf.properties)
which must be present.
ZOOM_query_ccl2rpn
translates the CCL string,
client-side, into RPN which may be passed to the server.
The conversion is driven by the specification given by
config
. Upon completion 0 is returned on success; -1
is returned on on failure. Om failure error_string
and
error_pos
holds error message and position of
first error in original CCL string.