Browse Source

修改为需要连接池

liyuyi@c-top.com.cn 3 năm trước cách đây
mục cha
commit
bb364f070e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      config/url_and_db.py

+ 1 - 1
config/url_and_db.py

@@ -13,7 +13,7 @@ def get_db_engine(db_info):
                   db_info['host'],
                   db_info['port'],
                   db_info['database'])
-    engine = create_engine(db_con_str, connect_args={'charset': 'utf8mb4'}, poolclass=None)
+    engine = create_engine(db_con_str, connect_args={'charset': 'utf8mb4'})
     return engine