ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Translate Orionis query plans into engine-executable statements.

Constant _BETWEEN_BOUNDS Number of boundaries required by a BETWEEN condition.
Constant _COMPARATORS Comparison operators for basic where clauses.
Constant _EQUALITY_OPERATORS Operators whose NULL comparison must compile to IS / IS NOT.
Constant _INEQUALITY_OPERATORS Inequality operators used by compiler.
Constant _PATTERN_OPERATORS Pattern-matching operators accepted by basic where clauses.
Constant _SIMPLE_CLAUSES Handlers for where clause kinds with a single-expression translation.
Type Alias SourceMap Table sources reachable by qualified column references, keyed by alias when present or by logical table name otherwise.
Type Alias SqlSource either the raw engine Table or an aliased projection of it (Table.alias(name)).
_BETWEEN_BOUNDS: int = (source)

Number of boundaries required by a BETWEEN condition.

Value
2
_COMPARATORS: dict[str, Callable[[Any, Any], Any]] = (source)

Comparison operators for basic where clauses.

Value
{'=': operator.eq,
 '==': operator.eq,
 '!=': operator.ne,
 '<>': operator.ne,
 '<': operator.lt,
 '<=': operator.le,
 '>': operator.gt,
...
_EQUALITY_OPERATORS: frozenset[str] = (source)

Operators whose NULL comparison must compile to IS / IS NOT.

Value
frozenset(set(['=', '==']))
_INEQUALITY_OPERATORS: frozenset[str] = (source)

Inequality operators used by compiler.

Value
frozenset(set(['!=', '<>']))
_PATTERN_OPERATORS: dict[str, Callable[[Any, Any], Any]] = (source)

Pattern-matching operators accepted by basic where clauses.

Value
{'like': (lambda col, val: col.like(val)),
 'not like': (lambda col, val: col.not_like(val)),
 'ilike': (lambda col, val: col.ilike(val)),
 'not ilike': (lambda col, val: col.not_ilike(val))}
_SIMPLE_CLAUSES: dict[WhereType, Callable[[Any, Any], Any]] = (source)

Handlers for where clause kinds with a single-expression translation.

Value
{WhereType.IN: (lambda col, val: col.in_(() if val is None else val)),
 WhereType.NOT_IN: (lambda col, val: col.not_in(() if val is None else val)),
 WhereType.NULL: (lambda col, _val: col.is_(None)),
 WhereType.NOT_NULL: (lambda col, _val: col.is_not(None)),
 WhereType.LIKE: (lambda col, val: col.like(val)),
 WhereType.NOT_LIKE: (lambda col, val: col.not_like(val)),
 WhereType.ILIKE: (lambda col, val: col.ilike(val)),
...

Table sources reachable by qualified column references, keyed by alias when present or by logical table name otherwise.

Value
dict[str, SqlSource]

either the raw engine Table or an aliased projection of it (Table.alias(name)).

Value
Any