Search packages, repositories and app categories

Package detailsv2.3.2+6

rethinkdb_dart

Dart 2 driver for RethinkDB v2.3.

30-day downloads
2
Likes
28
Pub points
25

Install package

flutter pub add rethinkdb_dart

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart 2 driver for RethinkDB v2.3, enabling seamless integration between Dart applications and the RethinkDB database. It provides a straightforward API to connect, query, and manage data in RethinkDB from Flutter or other Dart-based projects. Designed for real-time data synchronization, it supports changefeeds and reactive programming patterns. The driver is lightweight and focused on core database operations, making it suitable for apps requiring live data updates and efficient backend communication.

Use cases

  • Real-time data syncing in Flutter apps
  • Building reactive dashboards with live updates
  • Integrating RethinkDB into Dart backends
  • Handling streaming data with changefeeds
  • Developing collaborative web applications

Key features

  • Supports RethinkDB v2.3
  • Provides changefeed functionality
  • Lightweight and minimal API
  • Compatible with Flutter and Dart CLI
  • Offers connection pooling and error handling

Suitable for

  • Dart developers using RethinkDB
  • Apps needing real-time data streams
  • Projects requiring reactive database queries
  • Backend services built with Dart
  • Prototyping rapid data-driven interfaces

Considerations

  • Limited to RethinkDB v2.3
  • No official support for newer RethinkDB versions
  • Requires manual setup of database connections
  • Not actively maintained beyond v2.3
  • Best suited for small to medium-scale applications

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Build Status

Dart 2 and Flutter RethinkDB Driver

A Dart 2 and Flutter driver for RethinkDB v2.3.

This is a fork of RethinkDB Driver, that was created to update the driver to Dart 2 and Flutter.

Getting Started:

The driver api tries to align with the javascript and python RethinkDB drivers. You can read their documentation here.

To include this driver in your own project add the package to your pubspec.yaml file:

dependencies:
  rethinkdb_dart: '^2.3.2+6'

Or to use bleeding edge:

dependencies:
  rethinkdb_dart:
    git: git://github.com/marceloneppel/rethinkdb.git

Or if you are a developer:

dependencies:
  rethinkdb_dart:
    path: /path/to/your/cloned/rethinkdb_dart

Then import the package into your project:

import 'package:rethinkdb_dart/rethinkdb_dart.dart';

Connect to the database:

var connection = await r.connect(db: "test", host: "localhost", port: 28015);

Create a table:

await r.db('test').tableCreate('tv_shows').run(connection);

Insert some data:

await r.table('tv_shows').insert([
      {'name': 'Star Trek TNG', 'episodes': 178},
      {'name': 'Battlestar Galactica', 'episodes': 75}
    ]).run(connection);

And work with the data:

var count = await r.table('tv_shows').count();
print("count: $count");

To update protobuf execute the following command from the project root:

bash lib/src/generated/regenerate-proto.sh

To run tests execute the following command from the project root:

warning: tests are run against a live database, but they do attempt to clean up after themselves

pub run test  

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.