Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra
- Exceptions and Enums¶The version of the driver in a tuple format
The version of the driver in a string format
Spcifies how many replicas must respond for an operation to be considered
a success. By default, ONE
is used for all operations.
Only requires that one replica receives the write or the coordinator stores a hint to replay later. Valid only for writes.
Only one replica needs to respond to consider the operation a success
Two replicas must respond to consider the operation a success
Three replicas must respond to consider the operation a success
ceil(RF/2) + 1
replicas must respond to consider the operation a success
All replicas must respond to consider the operation a success
Requires a quorum of replicas in the local datacenter
Requires a quorum of replicas in each datacenter
For conditional inserts/updates that utilize Cassandra’s lightweight transactions, this requires consensus among all replicas for the modified data.
Sends a request only to replicas in the local datacenter and waits for one response.
Defines native protocol versions supported by this driver.
v1, supported in Cassandra 1.2–>2.2
v2, supported in Cassandra 2.0–>2.2; added support for lightweight transactions, batch operations, and automatic query paging.
v3, supported in Cassandra 2.1–>3.x+;
added support for protocol-level client-side timestamps (see Session.use_client_timestamp
),
serial consistency levels for BatchStatement
, and an improved connection pool.
v4, supported in Cassandra 2.2–>3.x+; added a number of new types, server warnings, new failure messages, and custom payloads. Details in the project docs
v5, in beta from 3.x+. Finalised in 4.0-beta5
v6, in beta from 4.0-beta5
DSE private protocol v1, supported in DSE 5.1+
DSE private protocol v2, supported in DSE 6.0+
A tuple of all supported protocol versions
A tuple of all beta protocol versions
Minimum protocol version supported by this driver.
Maximum protocol version supported by this driver.
Return the lower supported protocol version. Beta versions are omitted.
Describes a User function by name and argument signature
name of the function
Ordered list of CQL argument type names comprising the type signature
function signature string in the form ‘name([type0[,type1[…]]])’
can be used to uniquely identify overloaded function names within a keyspace
Describes a User aggregate function by name and argument signature
name of the aggregate
Ordered list of CQL argument type names comprising the type signature
function signature string in the form ‘name([type0[,type1[…]]])’
can be used to uniquely identify overloaded function names within a keyspace
Base for all exceptions explicitly raised by the driver.
Base for request execution exceptions returned from the server.
There were not enough live replicas to satisfy the requested consistency level, so the coordinator node immediately failed the request without forwarding it to any replicas.
The requested ConsistencyLevel
The number of replicas that needed to be live to complete the operation
The number of replicas that were actually alive
Replicas failed to respond to the coordinator node before timing out.
The requested ConsistencyLevel
The number of required replica responses
The number of replicas that responded before the coordinator timed out the operation
A subclass of Timeout
for read operations.
This indicates that the replicas failed to respond to the coordinator
node before the configured timeout. This timeout is configured in
cassandra.yaml
with the read_request_timeout_in_ms
and range_request_timeout_in_ms
options.
A boolean indicating whether the requested data was retrieved by the coordinator from any replicas before it timed out the operation
A subclass of Timeout
for write operations.
This indicates that the replicas failed to respond to the coordinator
node before the configured timeout. This timeout is configured in
cassandra.yaml
with the write_request_timeout_in_ms
option.
Replicas sent a failure to the coordinator.
The requested ConsistencyLevel
The number of required replica responses
The number of replicas that responded before the coordinator timed out the operation
The number of replicas that sent a failure message
A map of inet addresses to error codes representing replicas that sent a failure message. Only set when protocol_version is 5 or higher.
A subclass of CoordinationFailure
for read operations.
This indicates that the replicas sent a failure message to the coordinator.
A boolean indicating whether the requested data was retrieved by the coordinator from any replicas before it timed out the operation
A subclass of CoordinationFailure
for write operations.
This indicates that the replicas sent a failure message to the coordinator.
User Defined Function failed during execution
Keyspace of the function
Name of the function
List of argument type names of the function
Server request validation failed
Server indicated request errro due to current configuration
An attempt was made to create a keyspace or table that already exists.
The name of the keyspace that already exists, or, if an attempt was made to create a new table, the keyspace that the table is in.
The name of the table that already exists, or, if an attempt was
make to create a keyspace, None
.
A query was made that was invalid for some reason, such as trying to set the keyspace for a connection to a nonexistent keyspace.
The current user is not authorized to perform the requested operation.
Failed to authenticate.
The operation took longer than the specified (client-side) timeout to complete. This is not an error generated by Cassandra, only the driver.
Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra
- Exceptions and Enumscassandra.cluster
- Clusters and Sessionscassandra.policies
- Load balancing and Failure Handling Policiescassandra.auth
- Authenticationcassandra.metadata
- Schema and Ring Topologycassandra.metrics
- Performance Metricscassandra.query
- Prepared Statements, Batch Statements, Tracing, and Row Factoriescassandra.pool
- Hosts and Connection Poolscassandra.protocol
- Protocol Featurescassandra.encoder
- Encoders for non-prepared Statementscassandra.decoder
- Data Return Formatscassandra.concurrent
- Utilities for Concurrent Statement Executioncassandra.connection
- Low Level Connection Infocassandra.util
- Utilitiescassandra.timestamps
- Timestamp Generationcassandra.io.asyncioreactor
- asyncio
Event Loopcassandra.io.asyncorereactor
- asyncore
Event Loopcassandra.io.eventletreactor
- eventlet
-compatible Connectioncassandra.io.libevreactor
- libev
Event Loopcassandra.io.geventreactor
- gevent
-compatible Event Loopcassandra.io.twistedreactor
- Twisted Event Loopcassandra.cqlengine.models
- Table models for object mappingcassandra.cqlengine.columns
- Column types for object mapping modelscassandra.cqlengine.query
- Query and filter model objectscassandra.cqlengine.connection
- Connection management for cqlenginecassandra.cqlengine.management
- Schema management for cqlenginecassandra.cqlengine.usertype
- Model classes for User Defined TypesOn this page
cassandra
- Exceptions and Enums__version_info__
__version__
ConsistencyLevel
ProtocolVersion
ProtocolVersion.V1
ProtocolVersion.V2
ProtocolVersion.V3
ProtocolVersion.V4
ProtocolVersion.V5
ProtocolVersion.V6
ProtocolVersion.DSE_V1
ProtocolVersion.DSE_V2
ProtocolVersion.SUPPORTED_VERSIONS
ProtocolVersion.BETA_VERSIONS
ProtocolVersion.MIN_SUPPORTED
ProtocolVersion.MAX_SUPPORTED
ProtocolVersion.get_lower_supported()
UserFunctionDescriptor
UserAggregateDescriptor
DriverException
RequestExecutionException
Unavailable
Timeout
ReadTimeout
WriteTimeout
CoordinationFailure
ReadFailure
WriteFailure
FunctionFailure
RequestValidationException
ConfigurationException
AlreadyExists
InvalidRequest
Unauthorized
AuthenticationFailed
OperationTimedOut