Search packages, repositories and app categories

Package detailsv0.0.4

rethink_db_ns

This is an unofficial driver for using RethinkDB in Dart and Flutter supporting Null Safety, this driver is based on a fork https://github.com/marceloneppel/rethinkdb

AndroidiOSmacOSWindowsLinux
30-day downloads
22
Likes
25
Pub points
110

Install package

flutter pub add rethink_db_ns

Package Overview

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

rethink_db_ns is an unofficial Dart and Flutter driver for RethinkDB that supports null safety. Built on a fork of marceloneppel/rethinkdb, it enables seamless integration of RethinkDB into Flutter applications across multiple platforms. The package provides a straightforward API for connecting to RethinkDB servers, executing queries, and managing real-time data streams. It's ideal for developers seeking reactive database interactions in cross-platform apps. The driver maintains compatibility with modern Dart practices and ensures robust connectivity for both mobile and desktop environments.

Use cases

  • Real-time data synchronization in Flutter apps
  • Cross-platform database access using RethinkDB
  • Building reactive user interfaces with live data updates
  • Integrating RethinkDB into existing Dart projects
  • Developing offline-first applications with sync capabilities

Key features

  • Null safety support
  • Cross-platform compatibility (Android, iOS, macOS, Windows, Linux)
  • Real-time query streaming
  • Simple API for RethinkDB operations
  • Based on maintained fork of original driver

Suitable for

  • Flutter developers using RethinkDB
  • Projects requiring real-time database features
  • Apps targeting multiple platforms
  • Teams maintaining legacy RethinkDB integrations
  • Dart projects needing reactive data handling

Considerations

  • Unofficial driver – not maintained by RethinkDB team
  • Limited documentation compared to official drivers
  • Depends on external fork stability
  • No built-in migration or schema management
  • Requires RethinkDB server running separately

Original README

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

RethinkDB Driver for Dart/Flutter

This is a fork of Dart 2 and Flutter RethinkDB Driver with null safety 💪🏼 support and less dependencies.

Getting Started

Install Package

Install from Pub

dart pub add rethink_db_ns
# or
flutter pub add rethink_db_ns
dependencies:
  rethink_db_ns: ^0.0.4

Install from Github

dependencies:
  rethink_db:
    git: 
      url: git://github.com/G0mb/rethink_db.git
      ref: main

Then import the package into your project:

import 'package:rethink_db_ns/rethink_db_ns.dart';
Example
RethinkDb r = RethinkDb();

final connection = await r.connection(
  db: 'test',
  host: 'localhost',
  port: 28015,
  user: 'admin',
  password: '',
);

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

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

// Fetch data
var result = await r.table('tv_shows').get(1).run(connection);

I recommend reviewing the RethinkDB Documentation for other types of queries.

More examples will be added soon...

Unit Test
dart test

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

No data available yet.