sanic

class advanced_alchemy.extensions.sanic.CommitStrategyExecutor[source]

Bases: Protocol

__init__(*args, **kwargs)
class advanced_alchemy.extensions.sanic.SanicAdvancedAlchemy[source]

Bases: Extension, Generic[EngineT, SessionT, SessionMakerT]

__init__(*, sqlalchemy_config: SQLAlchemyAsyncConfig, autocommit: CommitStrategy | None = None, counters: Default | bool = _default, session_maker_key: str = 'sessionmaker', engine_key: str = 'engine', session_key: str = 'session') None[source]
__init__(*, sqlalchemy_config: SQLAlchemySyncConfig, autocommit: CommitStrategy | None = None, counters: Default | bool = _default, session_maker_key: str = 'sessionmaker', engine_key: str = 'engine', session_key: str = 'session') None
startup(bootstrap: Extend) None[source]

Advanced Alchemy Sanic extension startup hook.