예제 #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);
        }
예제 #2
0
 public SQLiteConnectionPoolConnection(SQLiteConnection conn, SQLiteConnectionPool pool)
 {
     _pool = pool;
     Connection = conn;
 }