搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目