class documentation

class _ConnectionCallableProto(Protocol): (source)

View In Hierarchy

a callable that returns a :class:`.Connection` given an instance. This callable, when present on a :class:`.Session`, is called only from the ORM's persistence mechanism (i.e. the unit of work flush process) to allow for connection-per-instance schemes (i.e. horizontal sharding) to be used as persistence time. This callable is not present on a plain :class:`.Session`, however is established when using the horizontal sharding extension.

Method __call__ Undocumented
def __call__(self, mapper: Optional[Mapper[Any]] = None, instance: Optional[object] = None, **kw: Any) -> Connection: (source)

Undocumented