Struct cdrs::client::Session [] [src]

pub struct Session<T: Authenticator, X: CDRSTransport> { /* fields omitted */ }

The object that provides functionality for communication with Cassandra server.

Methods

impl<T: Authenticator, X: CDRSTransport> Session<T, X>
[src]

Creates new session basing on CDRS instance.

The method overrides a compression method of current session

Manually ends current session. Apart of that session will be ended automatically when the instance is dropped.

The method makes a request to DB Server to prepare provided query.

The method makes a request to DB Server to execute a query with provided id using provided query parameters. id is an ID of a query which Server returns back to a driver as a response to prepare request.

The method makes a request to DB Server to execute a query provided in query argument. you can build the query with QueryBuilder let qb = QueryBuilder::new().query("select * from emp") .consistency(Consistency::One).page_size(Some(4)); session.query_with_builder(qb);

It consumes CDRS