4.3 KiB
cassandra.cluster
- Clusters and Sessions
cassandra.cluster
Cluster ([contact_points=('127.0.0.1',)][, port=9042][, executor_threads=2], **attr_kwargs)
contact_points
port
cql_version
protocol_version
compression
auth_provider
load_balancing_policy
reconnection_policy
default_retry_policy
conviction_policy_factory
address_translator
metrics_enabled
metrics
ssl_options
sockopts
max_schema_agreement_wait
metadata
connection_class
control_connection_timeout
idle_heartbeat_interval
schema_event_refresh_window
topology_event_refresh_window
status_event_refresh_window
prepare_on_all_hosts
reprepare_on_up
connect_timeout
schema_metadata_enabled
token_metadata_enabled
timestamp_generator
connect
shutdown
register_user_type
register_listener
unregister_listener
add_execution_profile
set_max_requests_per_connection
get_max_requests_per_connection
set_min_requests_per_connection
get_min_requests_per_connection
get_core_connections_per_host
set_core_connections_per_host
get_max_connections_per_host
set_max_connections_per_host
get_control_connection_host
refresh_schema_metadata
refresh_keyspace_metadata
refresh_table_metadata
refresh_user_type_metadata
refresh_user_function_metadata
refresh_user_aggregate_metadata
refresh_nodes
set_meta_refresh_enabled
ExecutionProfile
EXEC_PROFILE_DEFAULT
Session ()
default_timeout
default_consistency_level
default_serial_consistency_level
row_factory
default_fetch_size
use_client_timestamp
timestamp_generator
encoder
client_protocol_handler
execute(statement[, parameters][, timeout][, trace][, custom_payload])
execute_async(statement[, parameters][, trace][, custom_payload])
prepare(statement)
shutdown()
set_keyspace(keyspace)
execution_profile_clone_update
add_request_init_listener
remove_request_init_listener
ResponseFuture ()
query
result()
get_query_trace()
get_all_query_traces()
custom_payload()
is_schema_agreed
has_more_pages
warnings
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)
ResultSet ()
QueryExhausted ()
NoHostAvailable ()
UserTypeDoesNotExist ()