platform/drivers/rethinkdb
2024-12-14 20:56:05 -07:00
..
doc refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
example refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
lib refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
test refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
.gitignore refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
.metadata refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
analysis_options.yaml refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
CHANGELOG.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
LICENSE refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
pubspec.lock refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
pubspec.yaml refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
README.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00

Belatuk RethinkDB

A dart driver for connecting to RethinkDB, the open-source database for the realtime web. This driver is a fork of RethinkDB Driver with dependencies upgraded to support Dart 3.

Getting Started

Installation

dart pub add platform_driver_rethinkdb

  • Or add to the pubspec.yaml file
dependencies:
  platform_driver_rethinkdb: ^1.0.0
  • Import the package into your project:
import 'package:platform_driver_rethinkdb/platform_driver_rethinkdb.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);

References

  • For more information about RethinkDB, please visit RethinkDB
  • For RethinkDB API documentation, please refer to RethinkDB API