Couchbase C++ SDK 1.0.4 (rev. 5355b0f)
|
Offline, serializable representation of a bucket, scope, and collection. More...
#include <couchbase/transactions/transaction_keyspace.hxx>
Public Member Functions | |
transaction_keyspace (std::string bucket_name, std::string scope_name, std::string collection_name) | |
transaction_keyspace (const std::string &bucket_name) | |
auto | operator== (const transaction_keyspace &keyspace) const -> bool |
auto | valid () const -> bool |
Check if a keyspace is valid. | |
Public Attributes | |
std::string | bucket |
std::string | scope |
std::string | collection |
Friends | |
template<typename OStream > | |
auto | operator<< (OStream &os, const transaction_keyspace &keyspace) -> OStream & |
Offline, serializable representation of a bucket, scope, and collection.
transaction_keyspace | ( | std::string | bucket_name, |
std::string | scope_name, | ||
std::string | collection_name ) |
|
explicit |
|
inline |
auto valid | ( | ) | const -> bool |
Check if a keyspace is valid.
A valid transaction_keyspace must have the bucket, scope, and collection all set. Note that both the scope and collection default to _default, but there is no default for the bucket so it must be set.
|
friend |
std::string bucket |
std::string collection |
std::string scope |