
    +h                         d dl mZ d dlmZ ddl mZ ddlmZ  G d dej                        Z	 G d dej                        Zy	)
   )AsyncConnectable)AsyncSession   )eventsc                   6    e Zd ZdZeZed        Zedd       Zy)AsyncConnectionEvents
SomeEnginec                     t        d      )Nzasynchronous events are not implemented at this time.  Apply synchronous listeners to the AsyncEngine.sync_engine or AsyncConnection.sync_connection attributes.NotImplementedErrorclss    P/var/www/html/venv/lib/python3.12/site-packages/sqlalchemy/ext/asyncio/events.py_no_async_engine_eventsz-AsyncConnectionEvents._no_async_engine_events   s    !:
 	
    c                 $    | j                          y Nr   r   	event_keyretvals      r   _listenzAsyncConnectionEvents._listen       ##%r   NF)	__name__
__module____qualname___target_class_docr   _dispatch_targetclassmethodr   r    r   r   r   r      s4    $'
 
 & &r   r   c                   6    e Zd ZdZeZed        Zedd       Zy)AsyncSessionEventsSomeSessionc                     t        d      )Nztasynchronous events are not implemented at this time.  Apply synchronous listeners to the AsyncSession.sync_session.r   r   s    r   r   z*AsyncSessionEvents._no_async_engine_events#   s    !F
 	
r   c                 $    | j                          y r   r   r   s      r   r   zAsyncSessionEvents._listen*   r   r   Nr   )	r   r   r   r   r   r   r    r   r   r!   r   r   r#   r#      s4    %#
 
 & &r   r#   N)enginer   sessionr   r   engine_eventorm	orm_eventConnectionEventsr   SessionEventsr#   r!   r   r   <module>r.      s7    % ! , &&L99 &"&00 &r   