How to set connection timeout in SQLAlchemy

后端 未结 7 795
暗喜
暗喜 2020-12-14 16:00

I\'m trying to figure out how to set the connection timeout in create_engine(), so far I\'ve tried:

create_engine(url, timeout=10)
7条回答
  •  一生所求
    2020-12-14 16:27

    For a db2 backend via ibm_db2_sa + pyodbc:

    I looked through the source code, and there seems to be no way to control the connection timeout as of version 0.3.5 (2019/05/30): https://github.com/ibmdb/python-ibmdbsa

    I'm posting this to save others the trouble of looking.

提交回复
热议问题