Crate cassandra_cpp

source ·
Expand description

This is a wrapper around the DataStax C++ driver for Cassandra. It aims to be 100% safe with minimal overhead added

Structs

  • Iterates over the aggregate metadata entries(??)
  • Metadata about a cassandra aggregate
  • A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.
  • 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).
  • 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.
  • Iterater over the columns’s metadata entries(??)
  • Column metadata
  • Custom payloads not fully supported yet
  • Any cassandra datatype
  • The Error type.
  • A field’s metadata
  • Iterater over the field’s metadata entries(??)
  • Iterater over the function metadata entries(??)
  • The metadata for a function
  • Cassandra’s version of an IP address
  • Iterater over the keyspace’s metadata entries(??)
  • A snapshot of the schema’s metadata.
  • A cassandra list collection
  • A Cassandra Map
  • An iterator over the k/v pair in the map
  • 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().
  • The selected retry policy
  • A collection of column values. Read-only, so thread-safe.
  • A snapshot of the schema’s metadata
  • 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.
  • A Cassandra set
  • Iterater over the set’s metadata entries(??)
  • Describes the SSL configuration of a cluster.
  • 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.)
  • Iterater over the table’s metadata entries(??)
  • Table metadata
  • Generators of client-side, microsecond-precision timestamps. Note: This generator is thread-safe and can be shared by multiple sessions.
  • A tuple of values.
  • A user defined type
  • Iterater over the fields of a UDT
  • Version 1 (time-based) or version 4 (random) UUID.
  • A UUID generator object.
  • A single primitive value or a collection of values.

Enums

Traits

  • Auto inferencing conversion from c* to rust
  • 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
  • A generic Cassandra collection that needs to go away
  • Additional methods for Result, for easy interaction with this crate.

Functions

Type Definitions

  • A CQL protocol version is just an integer.
  • Convenient wrapper around std::Result.