Skip to main content

Module tree_query

Module tree_query 

Source
Expand description

Dynamically assembles the single-statement tree query a nested repo’s generated read fns execute at runtime: a tagged UNION ALL over one CTE per tree node, so a parent and all of its nested children (recursively) come back in one statement instead of one per level.

Structs§

TreeQuerySource
The root user query plus the bits needed to fold it into the tree query.
TreeSpec
Static description of one node (repo) in a nested tree, used to build the query.

Functions§

build_tree_query
decode_tag
decode_tagged_row
partition_by_tag