Crate cassandra_cpp[−][src]
Expand description
This is a wrapper around the DataStax C++ driver for Cassandra. It aims to be 100% safe with minimal overhead added
Macros
stmt | Create a Statement from a query string, automatically counting |
Structs
AggregateIterator | Iterates over the aggregate metadata entries(??) |
AggregateMeta | 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. |
CassFuture | A future representing the result of a Cassandra driver operation. |
CassResult | 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., |
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. |
ColumnIterator | Iterater over the columns’s metadata entries(??) |
ColumnMeta | Column metadata |
CustomPayload | Custom payloads not fully supported yet |
DataType | Any cassandra datatype |
Error | The Error type. |
Field | A field’s metadata |
FieldIterator | Iterater over the field’s metadata entries(??) |
FunctionIterator | Iterater over the function metadata entries(??) |
FunctionMeta | The metadata for a function |
Inet | Cassandra’s version of an IP address |
KeyspaceIterator | Iterater over the keyspace’s metadata entries(??) |
KeyspaceMeta | A snapshot of the schema’s metadata. |
List | A cassandra list collection |
Map | A Cassandra Map |
MapIterator | An iterator over the k/v pair in the map |
PreparedStatement | 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(). |
RetryPolicy | The selected retry policy |
Row | A collection of column values. Read-only, so thread-safe. |
SchemaMeta | A snapshot of the schema’s metadata |
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 | Iterater over the set’s metadata entries(??) |
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.) |
TableIterator | Iterater over the table’s metadata entries(??) |
TableMeta | Table metadata |
TimestampGen | 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. |
UserType | A user defined type |
UserTypeIterator | Iterater 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
BatchType | A type of batch. |
CassErrorCode | A Cassandra failure error code. |
Consistency | A Cassandra consistency level. |
ErrorKind | The kind of an error. |
LogLevel | The possible logging levels that can be set. |
SslVerifyFlag | The individual SSL verification levels. |
ValueType | The type of a Cassandra value. |
Traits
AsRustType | Auto inferencing conversion from c* to rust |
BindRustType | 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 |
CassCollection | A generic Cassandra collection that needs to go away |
ResultExt | Additional methods for |
Functions
set_level | Sets the log level. |
set_logger | Set or unset a logger to receive all Cassandra driver logs. |
Type Definitions
CqlProtocol | A CQL protocol version is just an integer. |
Result | Convenient wrapper around |