正しい方法はこれです(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 :(タイムアウトは秒単位で定義されます)