De juiste manier is deze (connect_timeout in plaats van connection_timeout ):
create_engine(db_url, connect_args={'connect_timeout': 10})
...en het werkt met zowel Postgres als MySQL
ps:(de time-out wordt gedefinieerd in seconden)
De juiste manier is deze (connect_timeout in plaats van connection_timeout ):
create_engine(db_url, connect_args={'connect_timeout': 10})
...en het werkt met zowel Postgres als MySQL
ps:(de time-out wordt gedefinieerd in seconden)