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

套件詳情v0.6.0+1

ferry_hive_store

Ferry GraphQL 客戶端的 Hive 儲存實作

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
556
喜歡數
6
Pub 分數
140

安裝套件

flutter pub add ferry_hive_store

套件介紹

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

ferry_hive_store 為 Ferry GraphQL 客戶端提供了一個基於 Hive 的儲存實作,可於多個平台實現 GraphQL 回應的持久化快取。它與輕量級、快速的 NoSQL 資料庫 Hive 無縫整合,用於儲存查詢結果並在應用程式重新啟動後維持狀態。此套件非常適合需要離線支援與高效資料管理的 GraphQL 應用。它支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

適用情境

  • 離線優先的 GraphQL 應用
  • 持久化快取 GraphQL 查詢
  • 跨平台資料持久化
  • 使用 GraphQL 的狀態管理
  • 高效的本地數據存儲

主要特色

  • 基於 Hive 的持久化儲存
  • 與 Ferry GraphQL 客戶端無縫整合
  • 支援離線資料存取
  • 多平台相容性
  • 輕量且高效率

適合對象

  • 使用 Ferry 與 GraphQL 的開發者
  • 需要離線功能的應用
  • 需要快速本地資料儲存的專案
  • 跨平台移動和桌面應用
  • 注重性能和可擴展性的團隊

使用建議

  • 專案中需要設定 Hive
  • 僅限Ferry GraphQL客戶端
  • 由於 Hive 依賴,可能會增加應用大小
  • 不適合大規模關係型資料
  • 需要適當的模式管理以保證快取一致性

原始 README

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

A simple, powerful GraphQL Client for Flutter and Dart

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

Documentation 📖

Features

  1. ✅ Fully Typed: work faster and safer with compile time checks and IDE autocomplete, including fully typed Cache reads and writes.
  2. 🔄 Built-In Code Generators: automatically generated immutable data classes for all your GraphQL Operations and Fragments, based on your schema.
  3. 🌐 Customizable Network Interface: highly customizable network interface using gql_link, allowing you to compose and extend Links.
  4. ✨ Normalized Optimistic Cache: keep data in sync with cache normalization and update your UI instantly with optimistic data.
  5. 💾 Multiple Data Stores: extensible Store interface with built-in MemoryStore and HiveStore (which uses hive for offline persistence).
  6. 📄 Refetch & Pagination: easily update responses with new data or combine multiple responses, allowing for seamless pagination.
  7. 📱 Flutter Widgets: Widgets for Queries, Mutations, and Subscriptions, available out of the box.
  8. 🧈 Smooth: Run queries in a separate Isolate to free up resources on the UI thread

Packages

This repo is a monorepo for ferry and related packages.

Pub Package Description
version package:ferry Stream-based GraphQL Client
version package:ferry_cache Normalized, strongly typed, optimistic cache
version package:ferry_exec Strongly typed GraphQL execution interface
version package:ferry_flutter Flutter Widgets for GraphQL Operations
version package:ferry_generator Dart Type Generator for GraphQL Operations
version package:ferry_store Data Persistence for ferry's cache
version package:ferry_hive_store Hive implementation of ferry_store
version package:normalize Normalization / denormalization of GraphQL data

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案