Skip to content

DbDataReader ​

Namespace: Polars.FSharp

Instance Methods ​

ReadDatabaseBatchesAsync ​

Asynchronously streams database cursor records into chunks of native Polars DataFrames.

fsharp
member ReadDatabaseBatchesAsync(?batchSize: int, ?cancellationToken: CancellationToken) : IAsyncEnumerable<DataFrame>

Parameters

NameTypeDescription
batchSizeint (optional)Maximum number of rows per Arrow/DataFrame batch.
cancellationTokenCancellationToken (optional)Optional cooperative cancellation token.

Returns: An asynchronous stream of materialized DataFrame chunks.


Module Functions ​

DbDataReader.readDatabaseBatchesAsync ​

Asynchronously streams database cursor records into chunks of native Polars DataFrames.

fsharp
DbDataReader.readDatabaseBatchesAsync : batchSize: int -> reader: DbDataReader -> IAsyncEnumerable<DataFrame>

Parameters

NameTypeDescription
batchSizeint-
readerDbDataReader-

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.