如何在 Windows 中将 SQLite DB journal_mode 更改为 WAL?

How to change SQLite DB journal_mode to WAL in Windows?

我正在编写一个 Java Swing 应用程序,它在本地与 SQLite 数据库一起工作,它与在线 MySQL 数据库每分钟同步,它是一个线程。因此,即使同步过程正在进行中,用户也应该能够更改数据。

所以我知道我可以通过更改为日记模式来做到这一点 WAL 我已经在 Linux 中做到了。它工作得很好。但在 Windows 中它不起作用。当我尝试使用语句 PRAGMA journal_mode=WAL; 转换日志模式时,它总是 returns delete 而不是 WAL

我做了一些研究,我在 SQLite 网站上找到了这个。

The journal_mode pragma returns a string which is the new journal mode. On success, the pragma will return the string "wal". If the conversion to WAL could not be completed (for example, if the VFS does not support the necessary shared-memory primitives) then the journaling mode will be unchanged and the string returned from the primitive will be the prior journaling mode (for example "delete").

我该如何解决这个问题?例如,我可以更改 DB VFS 吗?

我正在使用 Sqliteman 来管理我的数据库。

好的,我刚刚发现出了什么问题。问题出在 Sqliteman 上。 windows 版本的程序无法处理 WAL 日志模式下的 DB。其他应用程序可以。

问题已解决。但是,如果有人能为我找到与 WAL 一起使用的 windows 版本的 Sqliteman,请指导我。 Sqliteman 可以节省大量时间。