Source code for pandagg.node.query.joining

from typing import Any

from pandagg.node.query.abstract import LeafQueryClause
from pandagg.node.query.compound import CompoundClause


[docs]class Nested(CompoundClause): _default_operator = "query" _parent_params = ["query"] KEY = "nested" def __init__(self, path: str, **body: Any) -> None: super(Nested, self).__init__(path=path, **body) self.path: str = path
[docs]class HasChild(CompoundClause): _default_operator = "query" _parent_params = ["query"] KEY = "has_child"
[docs]class HasParent(CompoundClause): _default_operator = "query" _parent_params = ["query"] KEY = "has_parent"
[docs]class ParentId(LeafQueryClause): KEY = "parent_id"