Module document

Module document 

Source
Expand description

Procedures to create and manipulate documents. Procedures to create and manipulate documents.

Functions§

create_snapshot
Saves the document by creating a new snapshot and setting the current_snapshot to it.
delete_ref
Soft-deletes a document reference by setting deleted_at.
get_doc_binary_data
Gets the binary automerge data for a document ref.
get_doc_id
Gets the Automerge document ID for the head snapshot of a ref.
load_snapshot
Set a live Automerge document to a different snapshot’s state.
new_ref
Creates a new document ref with initial content.
ref_deleted_at
Gets the deleted_at timestamp for a document ref.
restore_ref
Restores a soft-deleted document reference.