internal static SQLitePooledConnection GetConnection(SQLiteConnectionSettings settings) { lock (_lock) { // find it in the dictionary... string key = settings.Key; if (!(Connections.ContainsKey(key))) { SQLitePooledConnection conn = new SQLitePooledConnection(settings); Connections[key] = conn; } // return... return Connections[key]; } }
internal SQLitePooledConnection(SQLiteConnectionSettings settings) { this.Settings = settings; }