Struct cassandra_cpp::Session [] [src]

pub struct Session(pub *mut _Session);

A session object is used to execute queries and maintains cluster state through the control connection. The control connection is used to auto-discover nodes and monitor cluster changes (topology and schema). Each session also maintains multiple /pools of connections to cluster nodes which are used to query the cluster.

Instances of the session object are thread-safe to execute queries.

Methods

impl Session
[src]

[src]

Create a new Cassanda session. It's recommended to use Cluster.connect() instead

[src]

Connects a session.

[src]

Connects a session and sets the keyspace.

[src]

Closes the session instance, outputs a close future which can be used to determine when the session has been terminated. This allows in-flight requests to finish.

[src]

Create a prepared statement.

[src]

Execute a batch statement.

[src]

Execute a statement.

[src]

Gets a snapshot of this session's schema metadata. The returned snapshot of the schema metadata is not updated. This function must be called again to retrieve any schema changes since the previous call.

[src]

Gets a copy of this session's performance/diagnostic metrics.

Trait Implementations

impl Debug for Session
[src]

[src]

Formats the value using the given formatter.

impl Send for Session
[src]

impl Sync for Session
[src]

impl Drop for Session
[src]

[src]

Frees a session instance. If the session is still connected it will be synchronously closed before being deallocated.

impl Default for Session
[src]

[src]

Returns the "default value" for a type. Read more