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.
class documentation
class SelectPlan: (source)
Complete, engine-agnostic description of a SELECT query.
| Method | clone |
Return an independent copy of the plan. |
| Instance Variable | aggregate |
Aggregate projection replacing the column list when present. |
| Instance Variable | alias |
Name the main table is referred to by inside the query, or None to use its logical table name. Required to self-join a table against itself once joins are composed on top of a plan. |
| Instance Variable | columns |
Projected columns; empty means all columns. Entries may be qualified as "table.column" once joins is non-empty. |
| Instance Variable | distinct |
Whether duplicate rows are collapsed via SELECT DISTINCT. |
| Instance Variable | groups |
Grouping columns. |
| Instance Variable | havings |
Conditions applied after grouping. |
| Instance Variable | joins |
Additional table sources joined onto the main table. |
| Instance Variable | limit |
Maximum number of rows to return. |
| Instance Variable | lock |
Row locking mode requested for the selected rows. |
| Instance Variable | offset |
Number of rows to skip. |
| Instance Variable | orders |
Ordering rules. |
| Instance Variable | table |
Table the query runs against. |
| Instance Variable | unions |
Queries appended to this one through UNION. |
| Instance Variable | wheres |
Filtering conditions combined left to right. |
Return an independent copy of the plan.
Mutable clause lists are shallow-copied so the clone can be modified without affecting the original plan.
| Returns | |
SelectPlan | Detached copy of this plan. |
Name the main table is referred to by inside the query, or None to use its logical table name. Required to self-join a table against itself once joins are composed on top of a plan.