搜索插件、代码仓与 APP 分类

插件详情v2.4.7

sembast_web

基于 IndexedDB 的 Web 上的 NoSQL 持久化嵌入式数据库

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
5.7万
喜欢数
58
Pub 分数
160

安装插件

flutter pub add sembast_web

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Sembast_web 是一个基于 IndexedDB 构建的 NoSQL 持久嵌入式数据库,专为 Web 应用程序设计。它提供了一种轻量级、高效的解决方案,可在浏览器中存储和检索结构化数据,而无需服务器支持。非常适合离线优先的应用程序,支持复杂查询、事务和索引,即使在网络连接受限的情况下也能确保快速访问数据。该包可与 Flutter 无缝集成,使开发者能够在 Web、移动和桌面平台上使用相同的 API。

适合场景

  • 离线优先的网络应用
  • 客户端数据存储在Web应用程序中
  • 跨平台数据持久化
  • 实时数据同步
  • 存储用户偏好和设置

主要特点

  • 基于 IndexedDB 的存储
  • 支持复杂查询和索引
  • 事务性操作
  • 跨平台兼容性
  • 轻量且快速的性能

适合对象

  • 使用 Flutter 的 Web 开发人员
  • 需要本地数据持久化的应用
  • 开发离线功能工具的开发者
  • 需要简单而强大的数据存储的项目
  • 针对多个平台使用共享代码的团队

使用建议

  • 仅限网页平台(非移动原生)
  • 取决于 IndexedDB 的可用性
  • 可能需要为旧版浏览器添加 polyfills
  • 不适合大规模服务器端数据管理
  • 性能取决于设备的存储容量

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

sembast

pub package Build Status codecov

NoSQL persistent embedded file system document-based database for Dart VM and Flutter with encryption support.

General

Yet another NoSQL persistent store database solution.

Pure dart solution working on Dart VM and Flutter using the file system as storage (1 database = 1 file). Works in memory (Browser, VM, Flutter, Node) for testing purpose

  • Supports single process io applications (Pure dart single file IO VM/Flutter storage supported)
  • Support transactions
  • Version management
  • Helpers for finding data
  • Web support (including Flutter Web) through sembast_web.
  • Can work on top of sqflite through sembast_sqflite.

Usage example:

Follow the guide.

Documentation

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

所在榜单