cassandart 0.3.0

  • Readme
  • Changelog
  • Installing
  • 67

Cassandra database client in Dart #

  • The package can be used with Cassandra (and Elassandra).
  • It is able to handle basic types (but: no map yet).
  • Detects and auto-connects peers.
  • Auto-selects peers with lower latencies.
  • Select the peer that is most likely to contain the data (use: hint).

This is an experimental library and protocol, use at your own risk.

How to contribute #

Check and follow the spec of the wire protocol v4 before creating a PR.

0.3.0 #

  • Peer-selection hint handles List<String> primary keys.
  • Warnings in query responses are now handled and included in ResultPage.


  • TIMESTAMP is now serialized from/to DateTime (with UTC).
  • Refactored methods around frame parsing (internals).
  • Client also has the hint parameter (as Cluster has it).

0.2.0 #

Better cluster handling:

  • Automatically connect to new peers.
  • Peer selection based on low latency connection.
  • Peer selection based on hint to connect to primary node directly (limited to String ids).

0.1.2 #

  • Updated to use Uint8List.

0.1.1 #

  • Added types: timestamp, timeuuid and counter.
  • Fixed a bug where it would crash on selecting and inserting a null field.
  • Updated to Dart 2.3 standards

0.1.0 #


    • PageRows implements Page<Row> from package:page.
    • CassandraClient.close removed, only CassandraPool needs it.
    • Renamed CassandraClient -> Client.
    • Renamed CassandraPool -> Cluster and updated connect.
    • Renamed DataClass -> RawType, DataType -> Type, TypedValue -> Value.
    • Renamed RowsPage -> ResultPage.
  • Query result pagination.

0.0.1 #

  • Basic client.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  cassandart: ^0.3.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:cassandart/cassandart.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and cassandart.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
buffer ^1.0.0 1.0.6
meta ^1.0.0 1.1.8
page ^1.0.0 1.1.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0