Struct clickhouse_rs::Block
source · pub struct Block { /* private fields */ }
Implementations
sourceimpl Block
impl Block
pub fn load<R: ReadEx>(
reader: &mut R,
tz: Tz,
compress: bool
) -> Result<Block, ClickhouseError>
sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Return the number of columns in the current block.
pub fn columns(&self) -> &Vec<Column>
sourcepub fn get<'a, T, I>(&'a self, row: usize, col: I) -> Result<T, FromSqlError>where
T: FromSql<'a>,
I: ColumnIdx,
pub fn get<'a, T, I>(&'a self, row: usize, col: I) -> Result<T, FromSqlError>where
T: FromSql<'a>,
I: ColumnIdx,
Get the value of a particular cell of the block.
sourcepub fn add_column<S>(self, name: &str, values: S) -> Blockwhere
S: ColumnFrom,
pub fn add_column<S>(self, name: &str, values: S) -> Blockwhere
S: ColumnFrom,
Add new column into this block
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl !UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more