XYZ File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/ext/asyncio
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
ext
/
asyncio
/
📁
..
📄
__init__.py
(823 B)
📄
__init__.pyc
(982 B)
📄
base.py
(2.46 KB)
📄
engine.py
(26.03 KB)
📄
events.py
(1.39 KB)
📄
events.pyc
(2.17 KB)
📄
exc.py
(639 B)
📄
exc.pyc
(1.12 KB)
📄
result.py
(20.2 KB)
📄
scoping.py
(2.89 KB)
📄
session.py
(23.71 KB)
Editing: events.py
# ext/asyncio/events.py # Copyright (C) 2020-2024 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php from .engine import AsyncConnectable from .session import AsyncSession from ...engine import events as engine_event from ...orm import events as orm_event class AsyncConnectionEvents(engine_event.ConnectionEvents): _target_class_doc = "SomeEngine" _dispatch_target = AsyncConnectable @classmethod def _no_async_engine_events(cls): raise NotImplementedError( "asynchronous events are not implemented at this time. Apply " "synchronous listeners to the AsyncEngine.sync_engine or " "AsyncConnection.sync_connection attributes." ) @classmethod def _listen(cls, event_key, retval=False): cls._no_async_engine_events() class AsyncSessionEvents(orm_event.SessionEvents): _target_class_doc = "SomeSession" _dispatch_target = AsyncSession @classmethod def _no_async_engine_events(cls): raise NotImplementedError( "asynchronous events are not implemented at this time. Apply " "synchronous listeners to the AsyncSession.sync_session." ) @classmethod def _listen(cls, event_key, retval=False): cls._no_async_engine_events()
Upload File
Create Folder