rethink_db_ns 0.0.1 copy "rethink_db_ns: ^0.0.1" to clipboard
rethink_db_ns: ^0.0.1 copied to clipboard

outdated

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

RethinkDB Driver for Flutter #

This is a copy of Dart 2 and Flutter RethinkDB Driver added support for 💪🏼null safety💪🏼 .

Getting Started #

Install Package (WIP) #

Install from Pub

flutter pub add rethink_db
dependencies:
  rethink_db: ^0.0.1

Install from Github

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

Then import the package into your project:

import 'package:rethink_db/rethink_db.dart';

Example #

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 #

flutter test
25
likes
0
pub points
81%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

convert, crypto, fixnum, flutter, pbkdf2ns, protobuf

More

Packages that depend on rethink_db_ns