Transactions with Python sqlite3

后端 未结 7 1642
梦如初夏
梦如初夏 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.

    0 讨论(0)
提交回复
热议问题