
The root of the problem was that nested data types would use the default encoders for subitems. When the encoders were customized, they would not be used for those nested items. This fix moves the encoder functions into a class so that collections, tuples, and UDTs will use the customized mapping when encoding subitems. Fixes PYTHON-100.
2.3 KiB
cassandra.cluster
- Clusters and Sessions
cassandra.cluster
Cluster ([contact_points=('127.0.0.1',)][, port=9042][, executor_threads=2], **attr_kwargs)
cql_version
protocol_version
port
compression
auth_provider
load_balancing_policy
reconnection_policy
default_retry_policy
conviction_policy_factory
connection_class
metrics_enabled
metrics
metadata
ssl_options
sockopts
max_schema_agreement_wait
control_connection_timeout
connect
shutdown
register_user_type
register_listener
unregister_listener
get_core_connections_per_host
set_core_connections_per_host
get_max_connections_per_host
set_max_connections_per_host
Session ()
default_timeout
row_factory
default_fetch_size
use_client_timestamp
encoder
execute(statement[, parameters][, timeout][, trace])
execute_async(statement[, parameters][, trace])
prepare(statement)
shutdown()
set_keyspace(keyspace)
ResponseFuture ()
query
result([timeout])
get_query_trace()
has_more_pages
start_fetching_next_page()
add_callback(fn, args,*kwargs)
add_errback(fn, args,*kwargs)
add_callbacks(callback, errback, callback_args=(), callback_kwargs=None, errback_args=(), errback_args=None)
PagedResult ()
QueryExhausted ()
NoHostAvailable ()
UserTypeDoesNotExist ()