Transactions with Python sqlite3

后端 未结 7 1670
梦如初夏
梦如初夏 2020-12-07 17:33

I\'m trying to port some code to Python that uses sqlite databases, and I\'m trying to get transactions to work, and I\'m getting really confused. I\'m really confused by th

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 18:35

    Python's DB API tries to be smart, and begins and commits transactions automatically.

    I would recommend to use a DB driver that does not use the Python DB API, like apsw.

提交回复
热议问题