pub struct DataChunk(/* private fields */);Expand description
An owned DuckDB duckdb_data_chunk — a batch of column vectors — that is
destroyed on drop.
Obtain one from a query result with DataChunk::from_result, then append it
elsewhere with Appender::append_chunk.
Implementations§
Source§impl DataChunk
impl DataChunk
Sourcepub fn new(data_chunk: duckdb_data_chunk) -> Result<DataChunk>
pub fn new(data_chunk: duckdb_data_chunk) -> Result<DataChunk>
Sourcepub fn from_result(result: &DuckResult) -> Option<Result<DataChunk>>
pub fn from_result(result: &DuckResult) -> Option<Result<DataChunk>>
Fetches the next chunk of a query result, or None once the result is
exhausted.
Sourcepub fn current_row(&self) -> u64
pub fn current_row(&self) -> u64
The current row cursor used by next_row.
Trait Implementations§
Auto Trait Implementations§
impl !Send for DataChunk
impl !Sync for DataChunk
impl Freeze for DataChunk
impl RefUnwindSafe for DataChunk
impl Unpin for DataChunk
impl UnsafeUnpin for DataChunk
impl UnwindSafe for DataChunk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more