Syntax#
This reference page describes all building blocks of the Intermediate Query Language (IQL).
  Base class for all nodes in the IQL.
dataclass
  
#
  
            Bases: Node
Represents a call to a function. Is composed of a function name and a list of arguments.
  
            Bases: Node
Base class for boolean operator nodes.
  Checks if node is a boolean operation.
| RETURNS | DESCRIPTION | 
|---|---|
| IsBoolOpType | True if the node is a boolean operation, otherwise False. | 
  Checks if node is a function call.
| RETURNS | DESCRIPTION | 
|---|---|
| IsFunctionCallType | True if the node is a function call, otherwise False. | 
  Match syntax for convenient query building based on BoolOp type.
| PARAMETER | DESCRIPTION | 
|---|---|
| not_ | Callable executed when node is Not 
                
                  TYPE:
                     | 
| and_ | Callable executed when node is And 
                
                  TYPE:
                     | 
| or_ | Callable executed when node is Or 
                
                  TYPE:
                     | 
| RETURNS | DESCRIPTION | 
|---|---|
| Any | Result of chosen callable. | 
| RAISES | DESCRIPTION | 
|---|---|
| ValueError | if node is not of any supported boolean types | 
Source code in src/dbally/iql/syntax.py
            
dataclass
  
#
And(children: List[Node])
            Bases: BoolOp
And operator which may contain any number of children nodes. Returns True if all children are true.
  Checks if node is a boolean operation.
| RETURNS | DESCRIPTION | 
|---|---|
| IsBoolOpType | True if the node is a boolean operation, otherwise False. | 
  Checks if node is a function call.
| RETURNS | DESCRIPTION | 
|---|---|
| IsFunctionCallType | True if the node is a function call, otherwise False. | 
  Match syntax for convenient query building based on BoolOp type.
| PARAMETER | DESCRIPTION | 
|---|---|
| not_ | Callable executed when node is Not 
                
                  TYPE:
                     | 
| and_ | Callable executed when node is And 
                
                  TYPE:
                     | 
| or_ | Callable executed when node is Or 
                
                  TYPE:
                     | 
| RETURNS | DESCRIPTION | 
|---|---|
| Any | Result of chosen callable. | 
| RAISES | DESCRIPTION | 
|---|---|
| ValueError | if node is not of any supported boolean types | 
Source code in src/dbally/iql/syntax.py
            
dataclass
  
#
Or(children: List[Node])
            Bases: BoolOp
Or operator which may contain any number of children nodes. Returns True if any child is true.
  Checks if node is a boolean operation.
| RETURNS | DESCRIPTION | 
|---|---|
| IsBoolOpType | True if the node is a boolean operation, otherwise False. | 
  Checks if node is a function call.
| RETURNS | DESCRIPTION | 
|---|---|
| IsFunctionCallType | True if the node is a function call, otherwise False. | 
  Match syntax for convenient query building based on BoolOp type.
| PARAMETER | DESCRIPTION | 
|---|---|
| not_ | Callable executed when node is Not 
                
                  TYPE:
                     | 
| and_ | Callable executed when node is And 
                
                  TYPE:
                     | 
| or_ | Callable executed when node is Or 
                
                  TYPE:
                     | 
| RETURNS | DESCRIPTION | 
|---|---|
| Any | Result of chosen callable. | 
| RAISES | DESCRIPTION | 
|---|---|
| ValueError | if node is not of any supported boolean types | 
Source code in src/dbally/iql/syntax.py
            
dataclass
  
#
Not(child: Node)
            Bases: BoolOp
Not operator, contains only one children node. Inverts result of boolean operation.
  Checks if node is a boolean operation.
| RETURNS | DESCRIPTION | 
|---|---|
| IsBoolOpType | True if the node is a boolean operation, otherwise False. | 
  Checks if node is a function call.
| RETURNS | DESCRIPTION | 
|---|---|
| IsFunctionCallType | True if the node is a function call, otherwise False. | 
  Match syntax for convenient query building based on BoolOp type.
| PARAMETER | DESCRIPTION | 
|---|---|
| not_ | Callable executed when node is Not 
                
                  TYPE:
                     | 
| and_ | Callable executed when node is And 
                
                  TYPE:
                     | 
| or_ | Callable executed when node is Or 
                
                  TYPE:
                     | 
| RETURNS | DESCRIPTION | 
|---|---|
| Any | Result of chosen callable. | 
| RAISES | DESCRIPTION | 
|---|---|
| ValueError | if node is not of any supported boolean types |