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 ConnectionResolver: (source)
Static bridge between the ORM and the database connection manager.
The database service provider installs the manager here during boot; models and query builders resolve their connections through this class without ever touching the container or the SQL engine.
| Class Method | clear |
Remove the installed manager, mainly for test isolation. |
| Class Method | connection |
Resolve a database connection by name. |
| Class Method | manager |
Return the installed connection manager. |
| Class Method | set |
Install the connection manager used by every model. |
| Class Variable | _manager |
Undocumented |
Remove the installed manager, mainly for test isolation.
| Returns | |
None | This method does not return a value. |
Resolve a database connection by name.
| Parameters | |
name:str or None, optional | Connection name, or None for the default connection. |
| Returns | |
IConnection | Resolved connection. |
| Raises | |
OrmConfigurationException | If no manager has been installed yet. |
ConnectionNotFoundException | If the connection is not declared in the configuration. |
Return the installed connection manager.
| Returns | |
IConnectionManager | Manager resolving named database connections. |
| Raises | |
OrmConfigurationException | If no manager has been installed yet. |
Install the connection manager used by every model.
| Parameters | |
manager:IConnectionManager | Manager resolving named database connections. |
| Returns | |
None | This method does not return a value. |