Cluster class

The entry point for connecting to a cluster of Cassandra nodes.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Close all open connections in the cluster.
execute(String query, {Consistency? consistency, dynamic values, dynamic hint}) Future<void>
Execute query with the given parameters.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String query, {Consistency? consistency, dynamic values, int? pageSize, Uint8List? pagingState, dynamic hint}) Future<ResultPage>
Execute data row query with the given parameters and return a page object of the results rows (and further pagination support).
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

connect(List<String> hostPorts, {required Authenticator authenticator, Consistency? consistency}) Future<Cluster>