Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 pysqlite,默认情况下,它不启用事务 DDL(尽管 DDL 是来自 sqlite3 客户端的事务)。
如何在 pysqlite 中启用事务 DDL?
pysqlite 始终执行隐式提交,除非小写查询字符串以可选空格和“select”、“insert”、“update”、“delete”或“replace”之一开头。没有优雅的方法可以关闭它。要解决此问题,您可以编辑 pysqlite C 源代码。