搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.4

rethink_db_ns

這是用於在 Dart 和 Flutter 中使用 RethinkDB 的非官方驅動程式,支援空值安全,此驅動程式基於一個分叉 https://github.com/marceloneppel/rethinkdb

AndroidiOSmacOSWindowsLinux
近 30 天下載
22
喜歡數
25
Pub 分數
110

安裝套件

flutter pub add rethink_db_ns

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

rethink_db_ns 是一個非官方的 Dart 和 Flutter 驅動程式,用於 RethinkDB,支援空值安全。基於 marceloneppel/rethinkdb 的分支建構,可實現 RethinkDB 與跨平台 Flutter 應用的無縫整合。該套件提供簡單的 API,可用於連接 RethinkDB 伺服器、執行查詢以及管理即時資料串流。非常適合尋求跨平台應用中反應式資料庫互動的開發者。此驅動程式維持與現代 Dart 實踐的相容性,並確保在行動與桌面環境中的穩固連線。

適用情境

  • Flutter 應用中的即時資料同步
  • 使用 RethinkDB 的跨平台資料庫存取
  • 使用即時資料更新建構反應式使用者介面
  • 將 RethinkDB 集成到現有的 Dart 專案中
  • 開發具有同步功能的離線優先應用程式

主要特色

  • 空安全支援
  • 跨平台相容性(Android、iOS、macOS、Windows、Linux)
  • 即時查詢串流
  • RethinkDB 操作的簡單 API
  • 基於原始驅動程式維護分支

適合對象

  • 使用 RethinkDB 的 Flutter 開發人員
  • 需要即時資料庫功能的專案
  • 針對多個平台的應用程式
  • 維護舊版 RethinkDB 結合的團隊
  • 需要響應式資料處理的 Dart 項目

使用建議

  • 非官方驅動程式 – 不由 RethinkDB 團隊維護
  • 與官方驅動程式相比,文件有限
  • 依賴外部分叉的穩定性
  • 無內建遷移或架構管理
  • 需要獨立運行的 RethinkDB 伺服器

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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

所屬分類

依賴

依賴清單 5 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。