Beispiel #1
0
        public SQLiteAsyncConnection(string databasePath, SQLiteOpenFlags?flags = null, bool storeDateTimeAsTicks = false)
        {
            _flags = flags ?? (SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create | SQLiteOpenFlags.NoMutex | SQLiteOpenFlags.SharedCache);

            _connectionString = new SQLiteConnectionString(databasePath, storeDateTimeAsTicks);
            _pool             = new SQLiteConnectionPool(_connectionString, _flags);
        }
Beispiel #2
0
 public SQLiteConnectionPoolConnection(SQLiteConnection conn, SQLiteConnectionPool pool)
 {
     _pool = pool;
     Connection = conn;
 }