function to check if SQLite is using journal_mode=WAL or journal_mode=DELETE

北城余情 提交于 2019-12-23 09:32:09

问题


I was looking for function which would help me to see which journaling mode is enabled.. I looked here too list of function
There was function to check database status sqlite3_db_status(....) but status parameter didn't have option for check journaling mode

Is there a function or any way to find if sqlite db is using WAL-mode or normal journaling mode ..!!


回答1:


To query the journal mode of a connection, execute PRAGMA journal_mode and read the result.



来源:https://stackoverflow.com/questions/21901814/function-to-check-if-sqlite-is-using-journal-mode-wal-or-journal-mode-delete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!