立即隔离级别sqlite Python

时间:2015-07-31 17:05:12

标签: python sqlite

Python sqlite3中的immediate隔离级别对应于什么?据我所知,它的作用并没有真正记录在文档中 - https://docs.python.org/2/library/sqlite3.html#sqlite3-controlling-transactions

我是否正确地假设它在数据库上放置reserved lock? [https://www.sqlite.org/lockingv3.html#reserved_lock]

1 个答案:

答案 0 :(得分:2)

Yes, it immediately (tries to) grab a reserved lock, as opposed to waiting until you execute a write operation.

Python just passes it to SQLite's BEGIN TRANSACTION statement.