From 77459587a762479bfef3f543b26316fae476086a Mon Sep 17 00:00:00 2001 From: KWON Date: Mon, 28 Jul 2025 13:40:44 +0900 Subject: [PATCH] =?UTF-8?q?db=20=EC=97=94=EC=A7=84=20=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/db.py b/conf/db.py index df6b738..e63f790 100644 --- a/conf/db.py +++ b/conf/db.py @@ -21,5 +21,8 @@ db_url = f"mysql+pymysql://{db_cfg['user']}:{db_cfg['password']}@{db_cfg['host'] engine = create_engine(db_url, pool_pre_ping=True) Session = sessionmaker(bind=engine) +def get_engine(): + return engine + def get_session(): return Session()