reifydb-rql 0.5.0

ReifyDB Query Language (RQL) parser and AST
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright (c) reifydb.com 2025
# This file is licensed under the Apache-2.0, see license.md file

# Dead branch elimination: if-true collapses to its then-branch
query 'CALL rql::explain("from users filter { if true { age > 0 } else { age < 0 } }")'
---
> +-------+---------+----------+-------------+-----------------------+
> |  idx  |  depth  |  parent  |    kind     |        detail         |
> +-------+---------+----------+-------------+-----------------------+
> |   0   |    0    |   none   |   Filter    |  (age > Constant(0))  |
> |   1   |    1    |    0     |  TableScan  |    default::users     |
> +-------+---------+----------+-------------+-----------------------+
>