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 TableDefinition: (source)
Framework-agnostic description of a database table.
Built once per model by the metaclass and consumed by the database compiler to produce engine-specific SQL. It carries no reference to the underlying SQL toolkit.
| Method | column |
Return the declared column names in definition order. |
| Method | has |
Report whether a column is declared on the table. |
| Instance Variable | columns |
Column definitions keyed by attribute name. |
| Instance Variable | comment |
Descriptive comment rendered alongside the table DDL. |
| Instance Variable | composite |
Column names forming a multi-column primary key. When set, it takes precedence over the single-column primary_key. |
| Instance Variable | foreign |
Multi-column foreign key constraints. |
| Instance Variable | indexes |
Composite indexes spanning multiple columns. |
| Instance Variable | name |
Logical table name without any connection prefix. |
| Instance Variable | primary |
Name of the primary key column, when it is a single column. |
| Instance Variable | schema |
Database schema owning the table, or None for the default. |
| Instance Variable | unique |
Composite UNIQUE constraints spanning multiple columns. |