|
Couchbase C++ SDK 1.2.0 (rev. c2439a4)
|
The scope identifies a group of collections and allows high application density as a result. More...
#include <couchbase/scope.hxx>
Public Member Functions | |
| auto | bucket_name () const -> const std::string & |
| Returns name of the bucket where the scope is defined. | |
| auto | name () const -> const std::string & |
| Returns name of the scope. | |
| auto | collection (std::string_view collection_name) const -> collection |
| Opens a collection for this scope with an explicit name. | |
| void | query (std::string statement, const query_options &options, query_handler &&handler) const |
| Performs a query against the query (N1QL) services. | |
| auto | query (std::string statement, const query_options &options={}) const -> std::future< std::pair< error, query_result > > |
| Performs a query against the query (N1QL) services. | |
| void | search (std::string index_name, search_request request, const search_options &options, search_handler &&handler) const |
| Performs a request against the full text search services. | |
| auto | search (std::string index_name, search_request request, const search_options &options={}) const -> std::future< std::pair< error, search_result > > |
| Performs a request against the full text search services. | |
| void | analytics_query (std::string statement, const analytics_options &options, analytics_handler &&handler) const |
| Performs a query against the analytics services. | |
| auto | analytics_query (std::string statement, const analytics_options &options={}) const -> std::future< std::pair< error, analytics_result > > |
| Performs a query against the analytics services. | |
| auto | search_indexes () const -> scope_search_index_manager |
| Provides access to search index management services at the scope level. | |
Static Public Attributes | |
| static constexpr auto | default_name { "_default" } |
| Constant for the name of the default scope in the bucket. | |
Friends | |
| class | bucket |
The scope identifies a group of collections and allows high application density as a result.
| void analytics_query | ( | std::string | statement, |
| const analytics_options & | options, | ||
| analytics_handler && | handler ) const |
Performs a query against the analytics services.
| statement | the query statement. |
| options | options to customize the query request. |
| handler | the handler that implements query_handler |
|
nodiscard |
Performs a query against the analytics services.
| statement | the query statement. |
| options | options to customize the query request. |
|
nodiscard |
Returns name of the bucket where the scope is defined.
|
nodiscard |
Opens a collection for this scope with an explicit name.
| collection_name | the collection name. |
|
nodiscard |
Returns name of the scope.
| void query | ( | std::string | statement, |
| const query_options & | options, | ||
| query_handler && | handler ) const |
Performs a query against the query (N1QL) services.
| statement | the N1QL query statement. |
| options | options to customize the query request. |
| handler | the handler that implements query_handler |
|
nodiscard |
Performs a query against the query (N1QL) services.
| statement | the N1QL query statement. |
| options | options to customize the query request. |
| void search | ( | std::string | index_name, |
| search_request | request, | ||
| const search_options & | options, | ||
| search_handler && | handler ) const |
Performs a request against the full text search services.
This can be used to perform a traditional FTS query, and/or a vector search.
| index_name | name of the search index |
| request | request object, see search_request for more details. |
| options | options to customize the query request. |
| handler | the handler that implements search_handler |
|
nodiscard |
Performs a request against the full text search services.
This can be used to perform a traditional FTS query, and/or a vector search.
| index_name | name of the search index |
| request | request object, see search_request for more details. |
| options | options to customize the query request. |
|
nodiscard |
Provides access to search index management services at the scope level.
|
friend |
|
staticconstexpr |
Constant for the name of the default scope in the bucket.