OwlCyberSecurity - MANAGER
Edit File: env.cpython-312.pyc
� i��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$ >