Table of Contents

Interface IMappedQuery<T>

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

A query that reads its rows into a channel or a block feed, or one at a time.

public interface IMappedQuery<T>

Type Parameters

T

The type of a mapped row.

Extension Methods

Remarks

MappedQuery<T>, MappedQueryWithSkip<T>, MappedQueryWithTake<T> and MappedCommand<T> implement it. The Channel and Dataflow packages take it as their source.

Methods

Stream(TimeSpan, CancellationToken)

Reads the rows one at a time off the open reader, lazily, as you pull them: on your own thread, with nothing read ahead.

StreamBuffered(TimeSpan, int, CancellationToken)

Reads the rows lazily through a bounded channel that buffers up to bufferSize rows (it counts rows, not bytes); a size of 0 reads as Stream does, with no channel.

StreamBuffered(TimeSpan, CancellationToken)

Reads the rows lazily through a bounded channel that buffers up to 1,024 rows ahead of your loop, stopping the read when you stop pulling once the buffer is full.

ToPooledBufferStream(CancellationToken)

Reads the rows into pooled chunks, one chunk at a time, and frees the connection before the consumer sees a row.