如何将SQLite 3.7 WAL文件的内容合并到主数据库文件中 [英] How to merge contents of SQLite 3.7 WAL file into main database file
本文介绍了如何将SQLite 3.7 WAL文件的内容合并到主数据库文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在SQLite 3.7中启用 WAL(预读日志)(这是iOS上Core Data的默认设置) 7),如何将-wal文件中的内容合并/提交回主数据库文件?
With WAL (Write-Ahead-Logging) enabled in SQLite 3.7 (which is the default for Core Data on iOS 7), how do I merge/commit the content from the -wal file back into the main database file?
推荐答案
做一个检查点,即执行 PRAGMA wal_checkpoint 。
这篇关于如何将SQLite 3.7 WAL文件的内容合并到主数据库文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文