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
Inspect user objects without opening a separate database engine.
| Method | __init__ |
Bind inspection to a named connection. |
| Async Method | _find |
Find a requested table with a filtered catalog query. |
| Method | _resolve |
Match catalog names according to the driver's identifier rules. |
| Async Method | _server |
Read server column, index and foreign-key metadata. |
| Async Method | _sqlite |
Read SQLite column, index and foreign-key metadata. |
| Async Method | connection |
Return server session count if the driver exposes it. |
| Async Method | database |
Return database size in bytes when available. |
| Async Method | list |
List PostgreSQL domains, which require DROP DOMAIN. |
| Async Method | list |
List materialized views outside system schemas. |
| Async Method | list |
List non-system tables visible on the selected database. |
| Async Method | list |
List user-defined types that may be removed by db:wipe. |
| Async Method | list |
List user views visible on the selected database. |
| Method | quote |
Quote a catalog identifier using the selected SQL dialect. |
| Async Method | row |
Count rows in a table returned by the catalog. |
| Async Method | table |
Describe a physical table, including columns, indexes and keys. |
| Async Method | table |
Return physical table size in bytes when exposed by the driver. |
| Async Method | table |
Read physical sizes for all catalog tables in one query. |
| Async Method | view |
Count ordinary and materialized views without loading their names. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | config |
Undocumented |
| Instance Variable | connection |
Undocumented |
| Instance Variable | driver |
Undocumented |
| Instance Variable | name |
Undocumented |
Bind inspection to a named connection.
| Parameters | |
manager:IConnectionManager | Manager that resolves database configurations and connections. |
name:str | None, optional | Named connection, or the configured default. |
| Returns | |
None | Complete the documented operation without returning a value. |
Find a requested table with a filtered catalog query.
| Parameters | |
name:str | Qualified or unqualified table name requested by the user. |
| Returns | |
str | None | Unambiguous catalog table name, if one exists. |
Return server session count if the driver exposes it.
| Returns | |
int | None | Open server sessions, or None when unavailable. |
Return database size in bytes when available.
| Returns | |
int | None | Database size, or None when unavailable. |
Quote a catalog identifier using the selected SQL dialect.
| Parameters | |
name:str | Identifier returned by the database catalog. |
qualified:bool, optional | Whether to split a schema-qualified identifier. |
| Returns | |
str | Identifier escaped for use in a SQL statement. |
| Raises | |
ValueError | If an identifier or one of its components is empty. |
Describe a physical table, including columns, indexes and keys.
| Parameters | |
name:str | Table name provided to db:table. |
| Returns | |
dict[str, Any] | Table metadata and statistics. |
| Raises | |
ValueError | If the selected table is absent from the catalog. |
Return physical table size in bytes when exposed by the driver.
| Parameters | |
name:str | Catalog table name to inspect. |
| Returns | |
int | None | Physical size, or None when unavailable. |