Python sqlite3中的immediate
隔离级别对应于什么?据我所知,它的作用并没有真正记录在文档中 - https://docs.python.org/2/library/sqlite3.html#sqlite3-controlling-transactions
我是否正确地假设它在数据库上放置reserved lock
? [https://www.sqlite.org/lockingv3.html#reserved_lock]
答案 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.