Provides access to Collection
s and a write transaction API.
More...
Provides access to Collection
s and a write transaction API.
◆ collection()
Collection ditto::Store::collection |
( |
std::string |
name | ) |
|
Returns a Collection
with the provided name.
- Parameters
-
[in] | name | the name of the collection. |
- Returns
- a
Collection
.
◆ collections()
Returns an object that lets you fetch or observe the collections in the store.
- Returns
- a
PendingCollectionsOperation
object that you can use to fetch or observe the collections in the store
◆ write()
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections.
- Parameters
-
fn | a lambda that provides access to a write transaction object that can be used to perform operations on the store. |
- Returns
- a list of
WriteTransactionResult
s. There is a result for each operation performed as part of the write transaction.