Ditto 3.0.3-alpha2
|
Provides access to Collection
s and a write transaction API.
More...
#include <Store.hpp>
Public Member Functions | |
Collection | collection (std::string name) const |
Returns a Collection with the provided name. More... | |
std::vector< std::unique_ptr< WriteTransactionResult > > | write (std::function< void(WriteTransaction &)> fn) const |
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections. More... | |
PendingCollectionsOperation | collections () const |
Returns an object that lets you fetch or observe the collections in the store. More... | |
DiskUsage | get_disk_usage () const |
Provides access to the Store's disk usage. More... | |
Provides access to Collection
s and a write transaction API.
Collection ditto::Store::collection | ( | std::string | name | ) | const |
Returns a Collection
with the provided name.
[in] | name | the name of the collection. |
Collection
. PendingCollectionsOperation ditto::Store::collections | ( | ) | const |
Returns an object that lets you fetch or observe the collections in the store.
PendingCollectionsOperation
object that you can use to fetch or observe the collections in the store DiskUsage ditto::Store::get_disk_usage | ( | ) | const |
std::vector< std::unique_ptr< WriteTransactionResult > > ditto::Store::write | ( | std::function< void(WriteTransaction &)> | fn | ) | const |
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections.
fn | a lambda that provides access to a write transaction object that can be used to perform operations on the store. |
WriteTransactionResult
s. There is a result for each operation performed as part of the write transaction.