OwlCyberSecurity - MANAGER
Edit File: env.cpython-312.pyc
� i��g7 � �� � d dl mZ d dlmZ d dlmZ d dlmZ ej Zej � eej � dZ dd�Z dd�Z ej � r e � y e� y) � )� fileConfig)�engine_from_config)�pool)�contextNc �� � 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 �L/opt/hc_python/lib/python3.12/site-packages/alembic/templates/generic/env.py�run_migrations_offliner sZ � � � � �!1� 2�C�����'��"�G�,� � � "� "� $���� � %� $� $�s � A'�'A0c �z � t t j t j i � dt j �� } | j � 5 }t j |t �� t j � 5 t j � ddd� ddd� y# 1 sw Y �xY w# 1 sw Y yxY w)z�Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context. zsqlalchemy.)�prefix� poolclass)� connectionr N)r r �get_section�config_ini_sectionr �NullPool�connectr r r r r )�connectabler s r �run_migrations_onliner 5 s� � � %����6�4�4�b�9���-�-��K� � � � �*����!�?� � � &� &� (��"�"�$� )� � � )� (�� � �s$ �0B1�?B%�B1�%B. �*B1�1B:)�returnN) �logging.configr � sqlalchemyr r �alembicr r �config_file_namer r r �is_offline_mode� � r �<module>r'