How to open SQLite connection in WAL mode

后端 未结 4 2153
青春惊慌失措
青春惊慌失措 2020-12-17 16:03

In C#, how to open an SQLite connection in WAL mode?

Here is how I open in normal mode:

SQLiteConnection connection = new SQLiteConnection(\"Data Sou         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 16:11

    The line below is what I was looking for, many thanks to Turbot whose answer includes it:

    new SQLiteConnection("Data Source=" + file + ";PRAGMA journal_mode=WAL;")
    

提交回复
热议问题