Couchbase C++ SDK
1.0.4 (rev. 5355b0f)
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
Functions
Variables
Typedefs
a
b
c
d
e
f
g
i
l
m
p
q
r
s
t
u
w
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
p
q
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Symbols
Files
File List
Examples
▼
Couchbase C++ SDK
►
Interfaces by Stability
►
Command Line Tools
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
couchbase
►
codec
▼
fmt
►
analytics_scan_consistency.hxx
►
analytics_status.hxx
►
cas.hxx
►
durability_level.hxx
►
error.hxx
►
error_context.hxx
►
mutation_token.hxx
►
query_profile.hxx
►
query_scan_consistency.hxx
►
query_status.hxx
►
retry_reason.hxx
►
search_scan_consistency.hxx
►
tls_verify_mode.hxx
►
transaction_keyspace.hxx
►
management
►
metrics
►
subdoc
►
tracing
►
transactions
►
allow_querying_search_index_options.hxx
►
analytics_index_manager.hxx
►
analytics_meta_data.hxx
►
analytics_metrics.hxx
►
analytics_options.hxx
►
analytics_result.hxx
►
analytics_scan_consistency.hxx
►
analytics_status.hxx
►
analytics_warning.hxx
►
analyze_document_options.hxx
►
append_options.hxx
►
behavior_options.hxx
►
best_effort_retry_strategy.hxx
►
binary_collection.hxx
►
boolean_field_query.hxx
►
boolean_query.hxx
►
bucket.hxx
►
bucket_manager.hxx
►
build_query_index_options.hxx
►
cas.hxx
►
certificate_authenticator.hxx
►
cluster.hxx
►
cluster_options.hxx
►
collection.hxx
►
collection_manager.hxx
►
collection_query_index_manager.hxx
►
common_durability_options.hxx
►
common_options.hxx
►
compression_options.hxx
►
configuration_profile.hxx
►
configuration_profiles_registry.hxx
►
conjunction_query.hxx
►
connect_link_analytics_options.hxx
►
counter_result.hxx
►
create_bucket_options.hxx
►
create_collection_options.hxx
►
create_dataset_analytics_options.hxx
►
create_dataverse_analytics_options.hxx
►
create_index_analytics_options.hxx
►
create_link_analytics_options.hxx
►
create_primary_query_index_options.hxx
►
create_query_index_options.hxx
►
create_scope_options.hxx
►
date_range.hxx
►
date_range_facet.hxx
►
date_range_facet_result.hxx
►
date_range_query.hxx
►
decrement_options.hxx
►
diagnostics_options.hxx
►
diagnostics_result.hxx
►
disallow_querying_search_index_options.hxx
►
disconnect_link_analytics_options.hxx
►
disjunction_query.hxx
►
dns_options.hxx
►
doc_id_query.hxx
►
drop_bucket_options.hxx
►
drop_collection_options.hxx
►
drop_dataset_analytics_options.hxx
►
drop_dataverse_analytics_options.hxx
►
drop_index_analytics_options.hxx
►
drop_link_analytics_options.hxx
►
drop_primary_query_index_options.hxx
►
drop_query_index_options.hxx
►
drop_scope_options.hxx
►
drop_search_index_options.hxx
►
durability_level.hxx
►
endpoint_diagnostics.hxx
►
endpoint_ping_report.hxx
►
error.hxx
►
error_codes.hxx
►
error_context.hxx
►
exists_options.hxx
►
exists_result.hxx
expiry.hxx
►
fail_fast_retry_strategy.hxx
►
flush_bucket_options.hxx
►
fork_event.hxx
►
freeze_plan_search_index_options.hxx
►
geo_bounding_box_query.hxx
►
geo_distance_query.hxx
►
geo_point.hxx
►
geo_polygon_query.hxx
►
get_all_buckets_options.hxx
►
get_all_datasets_analytics_options.hxx
►
get_all_indexes_analytics_options.hxx
►
get_all_query_indexes_options.hxx
►
get_all_replicas_options.hxx
►
get_all_scopes_options.hxx
►
get_all_search_indexes_options.hxx
►
get_and_lock_options.hxx
►
get_and_touch_options.hxx
►
get_any_replica_options.hxx
►
get_bucket_options.hxx
►
get_indexed_search_index_options.hxx
►
get_links_analytics_options.hxx
►
get_options.hxx
►
get_pending_mutations_analytics_options.hxx
►
get_replica_result.hxx
►
get_result.hxx
►
get_search_index_options.hxx
►
highlight_style.hxx
►
increment_options.hxx
►
insert_options.hxx
►
ip_protocol.hxx
►
logger.hxx
►
lookup_in_all_replicas_options.hxx
►
lookup_in_any_replica_options.hxx
►
lookup_in_options.hxx
►
lookup_in_replica_result.hxx
►
lookup_in_result.hxx
►
lookup_in_specs.hxx
►
match_all_query.hxx
►
match_none_query.hxx
►
match_operator.hxx
►
match_phrase_query.hxx
►
match_query.hxx
►
metrics_options.hxx
►
mutate_in_options.hxx
►
mutate_in_result.hxx
►
mutate_in_specs.hxx
►
mutation_result.hxx
►
mutation_state.hxx
►
mutation_token.hxx
►
network_options.hxx
►
numeric_range.hxx
►
numeric_range_facet.hxx
►
numeric_range_facet_result.hxx
►
numeric_range_query.hxx
►
password_authenticator.hxx
►
pause_ingest_search_index_options.hxx
►
persist_to.hxx
►
phrase_query.hxx
►
ping_options.hxx
►
ping_result.hxx
►
prefix_query.hxx
►
prepend_options.hxx
►
query_index_manager.hxx
►
query_meta_data.hxx
►
query_metrics.hxx
►
query_options.hxx
►
query_profile.hxx
►
query_result.hxx
►
query_scan_consistency.hxx
►
query_status.hxx
►
query_string_query.hxx
►
query_warning.hxx
►
read_preference.hxx
►
regexp_query.hxx
►
remove_options.hxx
►
replace_link_analytics_options.hxx
►
replace_options.hxx
►
replicate_to.hxx
►
result.hxx
►
resume_ingest_search_index_options.hxx
►
retry_action.hxx
►
retry_reason.hxx
►
retry_request.hxx
►
retry_strategy.hxx
►
scan_options.hxx
►
scan_result.hxx
►
scan_result_item.hxx
►
scan_type.hxx
►
scope.hxx
►
scope_search_index_manager.hxx
►
search_date_range.hxx
►
search_facet.hxx
►
search_facet_result.hxx
►
search_geo_distance_units.hxx
►
search_index_manager.hxx
►
search_meta_data.hxx
►
search_metrics.hxx
►
search_numeric_range.hxx
►
search_options.hxx
►
search_query.hxx
►
search_request.hxx
►
search_result.hxx
►
search_row.hxx
►
search_row_location.hxx
►
search_row_locations.hxx
►
search_scan_consistency.hxx
►
search_sort.hxx
►
search_sort_field.hxx
►
search_sort_field_missing.hxx
►
search_sort_field_mode.hxx
►
search_sort_field_type.hxx
►
search_sort_geo_distance.hxx
►
search_sort_id.hxx
►
search_sort_score.hxx
►
search_term_range.hxx
►
security_options.hxx
►
service_type.hxx
►
store_semantics.hxx
►
term_facet.hxx
►
term_facet_result.hxx
►
term_query.hxx
►
term_range_query.hxx
►
timeout_options.hxx
►
tls_verify_mode.hxx
►
touch_options.hxx
►
tracing_options.hxx
►
transactions.hxx
►
unfreeze_plan_search_index_options.hxx
►
unlock_options.hxx
►
update_bucket_options.hxx
►
update_collection_options.hxx
►
upsert_options.hxx
►
upsert_search_index_options.hxx
►
vector_query.hxx
►
vector_search.hxx
►
vector_search_options.hxx
►
wan_development_configuration_profile.hxx
►
watch_query_indexes_options.hxx
►
wildcard_query.hxx
►
docs
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
Loading...
Searching...
No Matches
query_status.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
/*
3
* Copyright 2020-Present Couchbase, Inc.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#pragma once
19
20
#include <
couchbase/query_status.hxx
>
21
22
#include <fmt/core.h>
23
30
template
<>
31
struct
fmt::formatter<
couchbase
::query_status> {
32
template
<
typename
ParseContext>
33
constexpr
auto
parse
(ParseContext& ctx)
34
{
35
return
ctx.begin();
36
}
33
constexpr
auto
parse
(ParseContext& ctx) {
…
}
37
38
template
<
typename
FormatContext>
39
auto
format
(
couchbase::query_status
status, FormatContext& ctx)
const
40
{
41
string_view name =
"unknown"
;
42
switch
(status) {
43
case
couchbase::query_status::running
:
44
name =
"running"
;
45
break
;
46
case
couchbase::query_status::success
:
47
name =
"success"
;
48
break
;
49
case
couchbase::query_status::errors
:
50
name =
"errors"
;
51
break
;
52
case
couchbase::query_status::completed
:
53
name =
"completed"
;
54
break
;
55
case
couchbase::query_status::stopped
:
56
name =
"stopped"
;
57
break
;
58
case
couchbase::query_status::timeout
:
59
name =
"timeout"
;
60
break
;
61
case
couchbase::query_status::closed
:
62
name =
"closed"
;
63
break
;
64
case
couchbase::query_status::fatal
:
65
name =
"fatal"
;
66
break
;
67
case
couchbase::query_status::aborted
:
68
name =
"aborted"
;
69
break
;
70
case
couchbase::query_status::unknown
:
71
name =
"unknown"
;
72
break
;
73
}
74
return
format_to(ctx.out(),
"{}"
, name);
75
}
39
auto
format
(
couchbase::query_status
status, FormatContext& ctx)
const
{
…
}
76
};
31
struct
fmt::formatter<
couchbase
::query_status> {
…
};
couchbase
Represents a single item from the result of collection::scan()
Definition
allow_querying_search_index_options.hxx:28
couchbase::query_status
query_status
Status of the N1QL Query.
Definition
query_status.hxx:29
couchbase::query_status::errors
@ errors
couchbase::query_status::success
@ success
couchbase::query_status::closed
@ closed
couchbase::query_status::running
@ running
couchbase::query_status::timeout
@ timeout
couchbase::query_status::completed
@ completed
couchbase::query_status::unknown
@ unknown
couchbase::query_status::fatal
@ fatal
couchbase::query_status::aborted
@ aborted
couchbase::query_status::stopped
@ stopped
query_status.hxx
fmt::formatter< couchbase::query_status >::parse
constexpr auto parse(ParseContext &ctx)
Definition
query_status.hxx:33
fmt::formatter< couchbase::query_status >::format
auto format(couchbase::query_status status, FormatContext &ctx) const
Definition
query_status.hxx:39
couchbase
fmt
query_status.hxx
Generated by
1.12.0