32#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
37class binary_collection_impl;
67 [[nodiscard]] auto
scope_name() const -> const std::
string&;
77 [[nodiscard]] auto
name() const -> const std::
string&;
98 std::vector<std::
byte> data,
120 [[nodiscard]] auto
append(std::
string document_id,
121 std::vector<std::
byte> data,
146 std::vector<std::
byte> data,
168 [[nodiscard]] auto
prepend(std::
string document_id,
169 std::vector<std::
byte> data,
257 std::string_view
name);
259 std::shared_ptr<binary_collection_impl> impl_;
Allows to perform certain operations on non-JSON documents.
Definition binary_collection.hxx:47
auto bucket_name() const -> const std::string &
Returns name of the bucket where the collection is defined.
void append(std::string document_id, std::vector< std::byte > data, const append_options &options, append_handler &&handler) const
Appends binary content to the document.
void increment(std::string document_id, const increment_options &options, increment_handler &&handler) const
Increments the counter document by one or the number defined in the options.
void prepend(std::string document_id, std::vector< std::byte > data, const prepend_options &options, prepend_handler &&handler) const
Prepends binary content to the document.
auto name() const -> const std::string &
Returns name of the collection.
void decrement(std::string document_id, const decrement_options &options, decrement_handler &&handler) const
Decrements the counter document by one or the number defined in the options.
auto scope_name() const -> const std::string &
Returns name of the scope where the collection is defined.
The cluster is the main entry point when connecting to a Couchbase cluster.
Definition cluster.hxx:60
The collection provides access to all collection APIs.
Definition collection.hxx:70
Represents result of counter operations.
Definition counter_result.hxx:35
Represents result of mutation operations.
Definition mutation_result.hxx:35
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, counter_result)> increment_handler
The signature for the handler of the binary_collection::increment() operation.
Definition increment_options.hxx:145
std::function< void(error, counter_result)> decrement_handler
The signature for the handler of the binary_collection::decrement() operation.
Definition decrement_options.hxx:144
std::function< void(error, mutation_result)> prepend_handler
The signature for the handler of the binary_collection::prepend() operation.
Definition prepend_options.hxx:103
std::function< void(error, mutation_result)> append_handler
The signature for the handler of the binary_collection::append() operation.
Definition append_options.hxx:102
Options for binary_collection::append().
Definition append_options.hxx:41
Options for collection#decrement().
Definition decrement_options.hxx:37
Options for binary_collection::increment().
Definition increment_options.hxx:38
Options for binary_collection::prepend().
Definition prepend_options.hxx:41