[][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 Default for Block
[src]

impl PartialEq<Block> for Block
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<Block> for Block
[src]

impl Clone for Block
[src]

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

Performs copy-assignment from source. Read more

impl Debug for Block
[src]

Auto Trait Implementations

impl Send for Block

impl Sync for Block

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T