Team Ai
Apppublic

ruby2210/todo-manager

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
config.cpython-312.pyc11 linesDownload Raw Back to __pycache__
1�

2�)ii����ddlmZmZddlmZmZddlmZddlm	Z	ddl3Z4ee	je	jrdndddd	d5��Z
edde
e��Zd
�Zd�Zy)�)�
create_engine�SQLModel)�create_async_engine�AsyncSession)�sessionmaker)�settingsNTF��6i,)�echo�
pool_pre_ping�	pool_size�max_overflow�pool_recycle)�7autocommit�	autoflush�bind�class_c���K�tj�4�d{���}|jtjj8��d{���ddd��d{���y7�F7�7�	#1�d{���7swYyxYw�w)zCreate database tablesN)�engine�begin�run_syncr�metadata�9create_all)�conns �JC:\Users\Dell\OneDrive\Desktop\todo-manager\backend\src\database\config.py�create_db_and_tablesrsK�����|�|�~�~���m�m�H�-�-�8�8�9�9�9��~�~��9����~�~�~�sV�A=�A"�A=�-A(�A$�
A(�A=�A&�A=�$A(�&A=�(A:�.A1�/A:�6A=c�K�t�4�d{���}|���ddd��d{���y7�7�#1�d{���7swYyxYw�w)z*Get async session for dependency injectionN)�AsyncSessionLocal)�sessions r�get_async_sessionr #s/���� �"�"�g��
�#�"�"��"��"�"�"�s8�A�,�A�0�A�.�A�A�A�9�A�A)�sqlmodelrr�sqlalchemy.ext.asynciorr�sqlalchemy.ormr�src.core.configr�asyncio�DATABASE_URL�DEBUGrrrr ��r�<module>r*sc��,�D�'�$��10��������U�����
11��!���	��	��:�r)