Kaynağa Gözat

disable pooling :
engine = create_engine('...', poolclass=NullPool)

liyuyi@c-top.com.cn 3 yıl önce
ebeveyn
işleme
ad23b8d3de
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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'}, poolclas=None)
+    engine = create_engine(db_con_str, connect_args={'charset': 'utf8mb4'}, poolclass=None)
     return engine