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 Database(BaseEntity): (source)
Configure a durable database queue connection.
| Parameters | |
| driver | Database driver identifier. |
| connection | Framework database connection, or its default when omitted. |
| table | Unqualified SQL table used to persist jobs. |
| queue | Default logical queue name read from QUEUE_DB_QUEUE. |
| retry | Reservation duration read from QUEUE_DB_RETRY_AFTER in seconds. |
| Method | __post |
Validate the driver, database identifiers, and reservation duration. |
| Class Variable | connection |
Undocumented |
| Class Variable | driver |
Undocumented |
| Class Variable | queue |
Undocumented |
| Class Variable | retry |
Undocumented |
| Class Variable | table |
Undocumented |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate the driver, database identifiers, and reservation duration.
| Returns | |
None | Keep validated connection settings unchanged. |
| Raises | |
TypeError | If a setting has an invalid type. |
ValueError | If a driver, identifier, or duration is invalid. |