C#에서 SQLite 연결을 여는 방법 in WAL mode? 당신이 덜 장황 뭔가를 알고 있다면WAL 모드에서 SQLite 연결을 여는 방법
SQLiteConnection connection = new SQLiteConnection("Data Source=" + file);
connection.Open();
using (var command = new SQLiteCommand(sqliteConnection))
{
command.CommandText = "PRAGMA journal_mode=WAL";
command.ExecuteNonQuery();
}
// (Perform my query)
, 내가 듣고 행복 할 것 :
여기SQLiteConnection connection = new SQLiteConnection("Data Source=" + file);
connection.Open();
// (Perform my query)
+1 코드의 마지막 줄 내가 찾고있는 솔루션입니다, 감사합니다 많이! 공장 접근 방식은 필자의 경우에는 필요하지 않지만 흥미로울 수있다. –
귀하의 접근 방식은 SQLite 연결 문자열에 허용되는 매개 변수의 수를 감안할 때 조합에 대한 흥미로운 사례 연구입니다. – Mark