Expand description
This is a wrapper around the DataStax C++ driver for Cassandra. It aims to be 100% safe with minimal overhead added
Structs§
- Aggregate
Iterator - Iterator over the aggregates in the keyspace.
- Aggregate
Meta - Metadata about a Cassandra aggregate
- Batch
- A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.
- Cass
Result - The result of a query.
A result object is read-only and is thread-safe to read or iterate over
concurrently, since we do not bind any setters (e.g.,
set_metadata
). - Cluster
- The main class to use when interacting with a Cassandra cluster. Typically, one instance of this class will be created for each separate Cassandra cluster that your application interacts with.
- Column
Iterator - Iterator over the columns in a table.
- Column
Meta - Column metadata
- Custom
Payload - Custom payloads not fully supported yet
- Data
Type - Any Cassandra datatype. This is an owned type.
- Error
- The Error type.
- Field
- A field’s metadata
- Field
Iterator - Iterator over the fields in a metadata object.
- Function
Iterator - Iterator over the functions in a keyspace.
- Function
Meta - The metadata for a function
- Inet
- Cassandra’s version of an IP address
- Keyspace
Iterator - Iterator over the keyspaces in the schema.
- Keyspace
Meta - A snapshot of the schema’s metadata.
- List
- A cassandra list collection
- Map
- A Cassandra Map
- MapIterator
- An iterator over the k/v pairs in a map.
- Prepared
Statement - A statement that has been prepared against at least one Cassandra node. Instances of this class should not be created directly, but through Session.prepare().
- Retry
Policy - The selected retry policy
- Row
- A collection of column values. Read-only, so thread-safe.
- Schema
Meta - A snapshot of the schema’s metadata. Owned.
- 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.
- Set
- A Cassandra set
- SetIterator
- Iterator over the values in a set.
- Ssl
- Describes the SSL configuration of a cluster.
- Statement
- A statement object is an executable query. It represents either a regular (adhoc) statement or a prepared statement. It maintains the queries’ parameter values along with query options (consistency level, paging state, etc.)
- Table
Iterator - Iterator over the tables in a keyspace.
- Table
Meta - Table metadata
- Timestamp
Gen - Generators of client-side, microsecond-precision timestamps. Note: This generator is thread-safe and can be shared by multiple sessions.
- Tuple
- A tuple of values.
- User
Type - A user defined type
- User
Type Iterator - Iterator over the fields of a UDT
- Uuid
- Version 1 (time-based) or version 4 (random) UUID.
- UuidGen
- A UUID generator object.
- Value
- A single primitive value or a collection of values.
Enums§
- Batch
Type - A type of batch.
- Cass
Error Code - A Cassandra failure error code.
- Consistency
- A Cassandra consistency level.
- Error
Kind - The kind of an error.
- LogLevel
- The possible logging levels that can be set.
- SslVerify
Flag - The individual SSL verification levels.
- Value
Type - The type of a Cassandra value.
Traits§
- AsRust
Type - Auto inferencing conversion from Cassandra to Rust.
- Bind
Rust Type - All Rust types that can be bound to a cassandra statement //FIXME not yet implemented Any rust type that can have a default bind implementation
- Cass
Collection - A generic Cassandra collection that needs to go away
- Lending
Iterator - Iterator that only allows access to a single item at a time. You must stop using the returned item before getting the next.
- Result
Ext - Additional methods for
Result
, for easy interaction with this crate.
Functions§
- set_
level - Sets the log level.
- set_
log_ logger - Set log to receive all Cassandra driver logs.
By default tracing will pick up logs emitted by
log
, so also use this if you are a tracing user. - set_
slog_ logger - Set a slog logger to receive all Cassandra driver logs.
Type Aliases§
- CqlProtocol
- A CQL protocol version is just an integer.
- Result
- Convenient wrapper around
std::Result
.