Správný způsob je tento (connect_timeout místo connection_timeout ):
create_engine(db_url, connect_args={'connect_timeout': 10})
...a funguje to s Postgres i MySQL
ps:(časový limit je definován v sekundách)
Správný způsob je tento (connect_timeout místo connection_timeout ):
create_engine(db_url, connect_args={'connect_timeout': 10})
...a funguje to s Postgres i MySQL
ps:(časový limit je definován v sekundách)