private IDisposable GetContext(out SqliteContext context) { if (_isBatching) { FlushBatch(); context = _batchContext; return(Disposable.CreateEmpty()); } else { context = new SqliteContext(_connection); return(context); } }