ORIONIS API REFERENCE

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 _AsyncNativeCreator: (source)

Constructor: _AsyncNativeCreator(creator)

View In Hierarchy

Collect a late native client before propagating caller cancellation.

Async Method __call__ Create a native client and collect it if cancellation arrives late.
Method __init__ Store the native database client factory.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _creator Factory that asynchronously creates a native database client.
async def __call__(self, *args: object, **kwargs: object) -> _AsyncDBAPIClient: (source)

Create a native client and collect it if cancellation arrives late.

Parameters
*args:objectPositional arguments passed to the native creator.
**kwargs:objectKeyword arguments passed to the native creator.
Returns
orionis.database.dialect._AsyncDBAPIClientCreated native database client.
def __init__(self, creator: Callable[..., Awaitable[_AsyncDBAPIClient]]): (source)

Store the native database client factory.

Parameters
creator:collections.abc.CallableFactory that asynchronously creates a native database client.
Returns
NoneNo return value.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

_creator = (source)

Factory that asynchronously creates a native database client.