internal override void Close() { if (this._sql != null) { if (this._usePool) { SQLiteBase.ResetConnection(this._sql); SQLiteConnectionPool.Add(this._fileName, this._sql, this._poolVersion); } else { this._sql.Dispose(); } } this._sql = null; }
// It isn't necessary to cleanup any functions we've registered. If the connection // goes to the pool and is resurrected later, re-registered functions will overwrite the // previous functions. The SQLiteFunctionCookieHandle will take care of freeing unmanaged // resources belonging to the previously-registered functions. internal override void Close() { if (_sql != null) { if (_usePool) { SQLiteBase.ResetConnection(_sql); SQLiteConnectionPool.Add(_fileName, _sql, _poolVersion); } else { _sql.Dispose(); } } _sql = null; }