正确的方法是使用此方法(
connect_timeout而不是
connection_timeout):
create_engine(db_url, connect_args={'connect_timeout': 10})…并且与Postgres和MySQL一起使用
ps :(超时以秒为单位)

正确的方法是使用此方法(
connect_timeout而不是
connection_timeout):
create_engine(db_url, connect_args={'connect_timeout': 10})…并且与Postgres和MySQL一起使用
ps :(超时以秒为单位)