관리-도구
편집 파일: env.cpython-311.pyc
� �܋fU � � � 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� � dS e� � dS )� N)� fileConfig)�pool)� Connection)�async_engine_from_config)�context�returnc � � t � d� � } t j | t dddi�� � t j � � 5 t j � � ddd� � dS # 1 swxY w Y dS )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/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/alembic/templates/async/env.py�run_migrations_offliner s� � � � � �!1� 2� 2�C����'��"�G�,� � � � � � "� $� $� !� !��� � � �!� !� !� !� !� !� !� !� !� !� !� !���� !� !� !� !� !� !s � A.�.A2�5A2� connectionc � � t j | t �� � t j � � 5 t j � � d d d � � d S # 1 swxY w Y d S )N)r r )r r r r r )r s r �do_run_migrationsr 7 s� � ����_�M�M�M�M� � "� $� $� !� !��� � � �!� !� !� !� !� !� !� !� !� !� !� !���� !� !� !� !� !� !s �A�A�Ac � �x K � t t � t j i � � dt j �� � } | � � � 4 �d{V ��}|� t � � � d{V �� ddd� � �d{V �� n# 1 �d{V ��swxY w Y | � � � � d{V �� dS )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$ >