我试图通过一个SQLite脚本将journal_mode设置为wal (预写日志)。
IronPython的安装版本是
IronPython 2.7 2.7.5.0在.NET 4.0.30319.18444上
它使用的SQLite版本是3.7.7,通过运行print sqlite3.sqlite_version获得。
WAL支持是在SQLite中添加到3.7.0版中的,那么为什么这个脚本无法运行呢?
如果我执行pragma journal_mode=wal;,我只会得到delete的响应。
如果我试图打开一个已经设置为WAL的数据库,我会得到一个_sqlite3.DatabaseError: file is encrypted or is not a database (wal format detected)错误。
https://stackoverflow.com/questions/30470617
复制相似问题