|L iU ddlZddlmZddlmZddlmZddlmZddl m Z e jZ e jee jdZ d dZd eddfd Zd d Zd d Ze j$reyey)N) fileConfig)pool) Connection)async_engine_from_config)contextreturnctjd}tj|tddditj 5tj dddy#1swYyxYw)aFRun 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 paramstylenamed)urltarget_metadata literal_binds dialect_optsN)configget_main_optionr configurer begin_transactionrun_migrations)r s a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/alembic/templates/async/env.pyrun_migrations_offlinersc  !1 2C  '"G,   " " $! !!!s A''A0 connectionctj|ttj5tjdddy#1swYyxYw)N)rr )rrr rr)rs rdo_run_migrationsr7s? _M  " " $! !!!s AAc~Kttjtjidtj }|j 4d{}|jtd{dddd{|jd{y7J7/7!#1d{7swY1xYw7 w)zcIn this scenario we need to create an Engine and associate a connection with the context. z sqlalchemy.)prefix poolclassN) rr get_sectionconfig_ini_sectionrNullPoolconnectrun_syncrdispose) connectablers rrun_async_migrationsr$>s +644b9--K ""$55 !!"344455    545555 sfAB=B B=B&2B"3B&7 B=B$B=B;B="B&$B=&B8,B/ -B84B=c>tjty)z Run migrations in 'online' mode.N)asynciorunr$rrun_migrations_onliner*Ps KK$&'r))rN)r&logging.configr sqlalchemyrsqlalchemy.enginersqlalchemy.ext.asyncioralembicrrconfig_file_namer rrr$r*is_offline_moder(r)rr2s%(;  &v&&' !0!*!! $( 7r)