pub fn execute_stream_arrow(query: &str) -> Result<ArrowQueryStream<'static>>Expand description
Execute a one-off Arrow streaming query using an in-memory connection.
Returns an ArrowQueryStream that owns the temporary connection and yields
arrow::record_batch::RecordBatch values via the Arrow C Data Interface.
Available when the crate is built with the arrow feature.
ยงExamples
use chdb_rust::execute_stream_arrow;
let mut stream = execute_stream_arrow("SELECT number FROM numbers(100_000)")?;
while let Some(batch) = stream.next_batch()? {
println!("rows: {}", batch.num_rows());
}