1 个仓库
Persistence layers that allow switching between different storage backends like relational databases or key-value stores.
Distinct from Persistent Relational Storage: Focuses on the pluggable nature of the storage backend rather than a specific implementation like SQLite.
Explore 1 awesome GitHub repository matching data & databases · Pluggable State Backends. Refine with filters or upvote what's useful.
TinyBase 是一个响应式数据存储和内存关系数据库,专为客户端状态持久化而设计。它作为一个本地优先(local-first)的同步引擎,使用无冲突复制数据类型(CRDT)和逻辑时钟合并分布式状态,以确保确定性的数据收敛。 该项目具有一个模式验证库,可将来自 Zod、Yup 和 TypeBox 等工具的外部定义转换为类型安全的存储定义。它为实时协作编辑提供了基础设施,利用与 Automerge、Yjs 和 PartyKit 的同步来维护跨多个客户端和服务器的一致状态。 能力范围包括具有表和外键的关系数据建模、类似 SQL 的查询和索引,以及用于分组变更的原子事务。它支持广泛的持久化适配器,包括浏览器存储、SQLite 和 Cloudflare Durable Objects。该系统还提供双向状态绑定和用于与 React、SolidJS 和 Svelte 集成的声明式组件。
Offers a pluggable architecture to switch between different storage backends like IndexedDB, SQLite, or cloud objects.