パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.3.2+6

rethinkdb_dart

RethinkDB v2.3 向けの Dart 2 ドライバー。

30日間ダウンロード
2
いいね数
28
Pub ポイント
25

パッケージをインストール

flutter pub add rethinkdb_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

RethinkDB v2.3 向けの Dart 2 ドライバーで、Dart アプリケーションと RethinkDB データベース間のスムーズな統合を可能にします。Flutter やその他の Dart ベースのプロジェクトから RethinkDB への接続、クエリ実行、データ管理を簡単な API で行えます。リアルタイムデータ同期を目的としており、変更フィードやリアクティブプログラミングパターンをサポートしています。軽量でコアデータベース操作に焦点を当てており、ライブデータ更新と効率的なバックエンド通信を必要とするアプリに適しています。

用途

  • Flutter アプリにおけるリアルタイムデータ同期
  • ライブ更新でリアクティブダッシュボードを構築する
  • DartバックエンドへのRethinkDBの統合
  • 変更フィードを使用したストリーミングデータの処理
  • 共同作業向けウェブアプリケーションの開発

主な機能

  • RethinkDB v2.3 をサポートしています
  • 変更フィード機能を提供します
  • 軽量で最小限の API
  • Flutter および Dart CLI と互換性があります
  • 接続プーリングとエラー処理を提供

適している対象

  • RethinkDB を使用する Dart 開発者
  • リアルタイムデータストリームを必要とするアプリ
  • リアクティブなデータベースクエリを必要とするプロジェクト
  • Dartで構築されたバックエンドサービス
  • 迅速なデータ駆動型インターフェースのプロトタイピング

注意事項

  • RethinkDB v2.3 までに制限
  • 最新の RethinkDB バージョンに対する公式サポートはありません
  • データベース接続の手動設定が必要です
  • v2.3以降は積極的にメンテナンスされていません
  • 小規模から中規模のアプリケーションに最適

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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  

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。