belatuk_rethinkdb

Creator: coderz1093

Last updated:

0 purchases

belatuk_rethinkdb Image
belatuk_rethinkdb Images

Languages

Categories

Add to Cart

Description:

belatuk rethinkdb

Belatuk RethinkDB #
A dart driver for connecting to RethinkDB, the open-source database for the realtime web. This driver comes from a fork of RethinkDB Driver and upgraded to support Dart 3 language syntax.
Getting Started #
Installation #

Install from Pub

dart pub add belatuk_rethinkdb

copied to clipboard

Or add to the pubspec.yaml file

dependencies:
belatuk_rethinkdb: ^1.0.0
copied to clipboard

Import the package into your project:

import 'package:belatuk_rethinkdb/belatuk_rethinkdb.dart';
copied to clipboard
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);
copied to clipboard
References #

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.