Explorar o código

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

liyuyi@c-top.com.cn %!s(int64=3) %!d(string=hai) anos
pai
achega
ad23b8d3de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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