[][src]Struct clickhouse_rs::types::Block

pub struct Block { /* fields omitted */ }

Represents Clickhouse Block

Methods

impl Block[src]

pub fn new() -> Self[src]

Constructs a new, empty Block.

pub fn row_count(&self) -> usize[src]

Return the number of rows in the current block.

pub fn column_count(&self) -> usize[src]

Return the number of columns in the current block.

pub fn columns(&self) -> &[Column][src]

This method returns a slice of columns.

pub fn get<'a, T, I>(&'a self, row: usize, col: I) -> Result<T, Error> where
    T: FromSql<'a>,
    I: ColumnIdx + Copy
[src]

Get the value of a particular cell of the block.

pub fn add_column<S>(self, name: &str, values: S) -> Self where
    S: ColumnFrom, 
[src]

Add new column into this block

pub fn is_empty(&self) -> bool[src]

Returns true if the block contains no elements.

Important traits for Rows<'a>
pub fn rows(&self) -> Rows[src]

This method returns a iterator of rows.

Trait Implementations

impl Clone for Block[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl AsRef<Block> for Block[src]

impl Default for Block[src]

impl PartialEq<Block> for Block[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Debug for Block[src]

Auto Trait Implementations

impl Sync for Block

impl Send for Block

impl Unpin for Block

impl !RefUnwindSafe for Block

impl !UnwindSafe for Block

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T