§
    ÞaNjî  ã                   ó¼   — d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	  ee	j
        ddi¬¦  «        Z edde¬¦  «        Z G d	„ d
e¦  «        Zdeeddf         fd„ZdS )é    )Ú	Generator)Úcreate_engine)ÚDeclarativeBaseÚSessionÚsessionmaker)ÚsettingsÚcheck_same_threadF)Úconnect_args)Ú
autocommitÚ	autoflushÚbindc                   ó   — e Zd ZdS )ÚBaseN)Ú__name__Ú
__module__Ú__qualname__© ó    ú6/var/www/sinfronteras/news-app/backend/app/database.pyr   r   	   s   € € € € € Ø€Dr   r   ÚreturnNc               #   óŠ   K  — t          ¦   «         } 	 | V — |                      ¦   «          dS # |                      ¦   «          w xY w)zKFastAPI dependency that yields a database session and ensures it is closed.N)ÚSessionLocalÚclose)Údbs    r   Úget_dbr      s@   è è € å	‰Œ€BðØˆˆˆà
�Š‰
Œ
ˆ
ˆ
ˆ
øˆ�Š‰
Œ
ˆ
ˆ
øøøs	   ’, ¬A)Úcollections.abcr   Ú
sqlalchemyr   Úsqlalchemy.ormr   r   r   Ú
app.configr   ÚDATABASE_URLÚenginer   r   r   r   r   r   ú<module>r"      sè   ðØ %Ð %Ð %Ð %Ð %Ð %Ø $Ð $Ð $Ð $Ð $Ð $Ø AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AØ Ð Ð Ð Ð Ð à	ˆ�xÔ,Ð<OÐQVÐ;WÐ	XÑ	XÔ	X€Øˆ| u¸ÀFÐKÑKÔK€ð	ð 	ð 	ð 	ð 	ˆ?ñ 	ô 	ð 	ð�	˜' 4¨Ð-Ô.ð ð ð ð ð ð r   