public SQLiteConnectionWithLock(SQLiteConnectionString connectionString, CNISS_Integration_Test.SQLite.SQLiteOpenFlags openFlags) : base(connectionString.DatabasePath, openFlags, connectionString.StoreDateTimeAsTicks) { }
public SQLiteAsyncConnection(string databasePath, CNISS_Integration_Test.SQLite.SQLiteOpenFlags openFlags, bool storeDateTimeAsTicks = false) { _openFlags = openFlags; _connectionString = new SQLiteConnectionString(databasePath, storeDateTimeAsTicks); }
public SQLiteConnectionWithLock GetConnection(SQLiteConnectionString connectionString, CNISS_Integration_Test.SQLite.SQLiteOpenFlags openFlags) { lock (_entriesLock) { Entry entry; string key = connectionString.ConnectionString; if (!_entries.TryGetValue(key, out entry)) { entry = new Entry(connectionString, openFlags); _entries[key] = entry; } return(entry.Connection); } }
public Entry(SQLiteConnectionString connectionString, CNISS_Integration_Test.SQLite.SQLiteOpenFlags openFlags) { ConnectionString = connectionString; Connection = new SQLiteConnectionWithLock(connectionString, openFlags); }