Expand description
Use ditto.store() to access the Store API to read, write, and remove documents.
The Store provides two interfaces for interacting with data: Ditto Query Language
(DQL), and the legacy “Query Builder” API. Where possible, we recommend developing new
functionality using DQL, as we will eventually deprecate Query Builder.
Modules§
- attachment
- Use attachments to sync large binary files between peers.
- transactions
- DQL Transactions
Structs§
- Document
Id - An identifier for a document in a Ditto collection.
- Store
- Use
ditto.store()to access theStoreAPI to read, write, and remove documents. - Store
Observer - Use
ditto.store().register_observer(...)to create an observer with a callback.
Enums§
- Sort
Direction - Specify the order of returned Documents in a query.
Traits§
- Change
Handler - An alias for
FnMut(QueryResult) + Send + Sync + 'static. A change handler is called whenever an active store observer receives new results. - Change
Handler With Signal Next - An alias for
FnMut(QueryResult, Box<dyn SignalNext>) + 'static + Send + Sync. A change handler is called whenever an active store observer receives new results. - Signal
Next - An alias for
FnOnce() + 'static + Send. A callback used to signal that the observer is ready to handle new events.