Example #1
0
 public ISQLiteConnection GetQueryLogSqliteConnection()
 {
     if (isPoolingEnabled)
     {
         return(logPool.GetSqliteConnection());
     }
     else
     {
         ISQLiteConnection conn = new SQLite.SQLiteConnection(QuerylogPath);
         conn.Execute("PRAGMA synchronous = OFF");
         // Five second busy timeout
         conn.BusyTimeout = new TimeSpan(0, 0, 5);
         return(conn);
     }
 }