index fb59c7c1ba5f8cf7c2d09e56295c74d6512d54e7..8a80852a7a5ba44d64659b1fc10713a67c7b3b18 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
sdb_store_query_t *
sdb_store_query_prepare(sdb_ast_node_t *ast);
+/*
+ * sdb_store_query_prepare_matcher:
+ * Prepare the logical expression described by 'ast' for execution as a store
+ * matcher.
+ *
+ * Returns:
+ * - a matcher on success
+ * - NULL else
+ */
+sdb_store_matcher_t *
+sdb_store_query_prepare_matcher(sdb_ast_node_t *ast);
+
/*
* sdb_store_query_execute:
* Execute a previously prepared query. The query result will be written to
sdb_store_isnull_matcher(sdb_store_expr_t *expr);
/*
- * sdb_store_isnnull_matcher:
- * Creates a matcher matching non-NULL values.
+ * sdb_store_istrue_matcher, sdb_store_isfalse_matcher:
+ * Creates a matcher matching boolean values.
*/
sdb_store_matcher_t *
-sdb_store_isnnull_matcher(sdb_store_expr_t *expr);
+sdb_store_istrue_matcher(sdb_store_expr_t *expr);
+sdb_store_matcher_t *
+sdb_store_isfalse_matcher(sdb_store_expr_t *expr);
/*
* sdb_store_matcher_matches: