pulsify-sqlite 16.0.0

Pulsify SQLite patch store and frame relay, file-compatible with the TypeScript SqlitePatchStore
Documentation

pulsify-sqlite

A SQLite patch store and frame relay for Pulsify documents, without any UI framework. It is the engine of tauri-plugin-pulsify, and usable on its own in any Rust process that persists Pulsify documents locally.

  • SqliteStore: the patch journal, file-compatible with the TypeScript SqlitePatchStore; either side can open a database written by the other. Like it, the store keeps the last value only of a field without history: each actor's newest write to it, in the pulsify_values table.
  • relay_frame: answers a client frame (connect, upload) from the store, without decoding the CRDT operations.
  • Hub: sessions pinned to one document each, sharing one connection; rows stored by one session reach the document's other sessions.
use pulsify_sqlite::SqliteStore;

let store = SqliteStore::open("pulsify.sqlite")?;

Frames are the binary Pulsify protocol of the pulsify-protocol crate.

License

Apache-2.0