. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/hc_python/lib/python3.12/site-packages/alembic/templates/async/__pycache__/ |
Upload File : |
�
��gU � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
e
j Zej � eej � dZ
d
d�Zd eddfd
�Zd
d�Zd
d�Z e
j$ � r e� y e� y)� N)�
fileConfig)�pool)�
Connection)�async_engine_from_config)�context�returnc �� � t j d� } t j | t dddi�� t j
� 5 t j � ddd� y# 1 sw Y yxY w)aF Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
zsqlalchemy.urlT�
paramstyle�named)�url�target_metadata�
literal_binds�dialect_optsN)�config�get_main_optionr � configurer
�begin_transaction�run_migrations)r s �J/opt/hc_python/lib/python3.12/site-packages/alembic/templates/async/env.py�run_migrations_offliner sZ � � �
�
�!1�
2�C�����'��"�G�,� �
� "� "� $���� �
%� $� $�s � A'�'A0�
connectionc � � t j | t �� t j � 5 t j � d d d � y # 1 sw Y y xY w)N)r r
)r r r
r r )r s r �do_run_migrationsr 7 s6 � �����_�M� � "� "� $���� �
%� $� $�s �A�Ac � �~ K � t t j t j i � dt j
�� } | j
� 4 �d{ ��� }|j t � � d{ ��� ddd� �d{ ��� | j � � d{ ��� y7 �J7 �/7 �!# 1 �d{ ���7 sw Y �1xY w7 � �w)zcIn this scenario we need to create an Engine
and associate a connection with the context.
zsqlalchemy.)�prefix� poolclassN)
r r �get_section�config_ini_sectionr �NullPool�connect�run_syncr �dispose)�connectabler s r �run_async_migrationsr$ >