ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying (internal or injected) HTTP client.
Insert data into collection at a new version
(POST /collections/<c>/documents). Returns the inserted document
(including its _id and _version).
Read the current version of document id from collection.
Return every version of document id (GET .../documents/<id>/versions).
Request a cryptographic proof for document id
(POST .../documents/<id>/proof). The returned object contains the
Merkle proof and the public-blockchain anchor that tamper-proofs the
document's state at its version.
Run a Mongo-style filter query against collection
(POST /collections/<c>/query). query is the Mongo filter document;
options carries projection/sort/limit and an optional historical
version.
Optionaloptions: Record<string, unknown>Fetch every document in collection matching the ORM where clause. The
where is compiled to a MongoDB filter; attributes/order/limit/
offset become the projection/sort/limit/skip query options, and
version (if given) reads the collection at a historical ProvenDB
version.
Fetch the first document matching where (Mongo limit 1), or null.
Count documents in collection matching where.
Optionalwhere: Record<string, any>Insert data as a new versioned document. Alias of append.
Insert many documents (one versioned write per document), returning them.
Update every document matching where, $setting each key in values.
Returns the raw ProvenDB response (which records the new version the
write was captured at).
Optionalwhere: Record<string, any>Insert-or-update: update documents matching where with data, creating
a new document if none match (upsert: true).
Delete every document matching where. ProvenDB retains prior versions,
so deleted documents remain recoverable via history.
Optionalwhere: Record<string, any>
ProvendbStorewraps ProvenDB's HTTP proof/document API behind the shared ledger surface.