Struct cassandra_cpp::CassResult
[−]
[src]
pub struct CassResult(_);
The result of a query. A result object is read-only and is thread-safe to read or iterate over concurrently.
Methods
impl CassResult
[src]
fn row_count(&self) -> u64
Gets the number of rows for the specified result.
fn column_count(&self) -> u64
Gets the number of columns per row for the specified result.
fn column_name(&self, index: usize) -> Result<&str>
Gets the column name at index for the specified result.
fn column_type(&self, index: usize) -> ValueType
Gets the column type at index for the specified result.
fn column_data_type(&self, index: usize) -> ConstDataType
Gets the column datatype at index for the specified result.
fn first_row(&self) -> Option<Row>
Gets the first row of the result.
fn has_more_pages(&self) -> bool
Returns true if there are more pages.
fn set_paging_state_token(&mut self, paging_state: &str) -> Result<&mut Self>
Sets the statement's paging state. This can be used to get the next page of data in a multi-page query.
Warning: The paging state should not be exposed to or come from untrusted environments. The paging state could be spoofed and potentially
fn iter(&self) -> ResultIterator
Creates a new iterator for the specified result. This can be used to iterate over rows in the result.