@@ -4143,7 +4143,7 @@ cb_Backend_document_scan_create(VALUE self, VALUE bucket, VALUE scope, VALUE col
4143
4143
rb_raise (eCouchbaseError, " Cannot perform scan operation. Unable to get bucket configuration" );
4144
4144
return Qnil;
4145
4145
}
4146
- if (!config->supports_range_scan ()) {
4146
+ if (!config->capabilities . supports_range_scan ()) {
4147
4147
rb_raise (eFeatureNotAvailable, " Server does not support key-value scan operations" );
4148
4148
return Qnil;
4149
4149
}
@@ -5841,13 +5841,13 @@ cb_Backend_query_index_get_all(VALUE self, VALUE bucket_name, VALUE options)
5841
5841
}
5842
5842
5843
5843
static VALUE
5844
- cb_Backend_query_index_create (VALUE self, VALUE bucket_name, VALUE index_name, VALUE fields , VALUE options)
5844
+ cb_Backend_query_index_create (VALUE self, VALUE bucket_name, VALUE index_name, VALUE keys , VALUE options)
5845
5845
{
5846
5846
const auto & cluster = cb_backend_to_cluster (self);
5847
5847
5848
5848
Check_Type (bucket_name, T_STRING);
5849
5849
Check_Type (index_name, T_STRING);
5850
- Check_Type (fields , T_ARRAY);
5850
+ Check_Type (keys , T_ARRAY);
5851
5851
if (!NIL_P (options)) {
5852
5852
Check_Type (options, T_HASH);
5853
5853
}
@@ -5857,12 +5857,12 @@ cb_Backend_query_index_create(VALUE self, VALUE bucket_name, VALUE index_name, V
5857
5857
cb_extract_timeout (req, options);
5858
5858
req.bucket_name = cb_string_new (bucket_name);
5859
5859
req.index_name = cb_string_new (index_name);
5860
- auto fields_num = static_cast <std::size_t >(RARRAY_LEN (fields ));
5861
- req.fields .reserve (fields_num );
5862
- for (std::size_t i = 0 ; i < fields_num ; ++i) {
5863
- VALUE entry = rb_ary_entry (fields , static_cast <long >(i));
5860
+ auto keys_num = static_cast <std::size_t >(RARRAY_LEN (keys ));
5861
+ req.keys .reserve (keys_num );
5862
+ for (std::size_t i = 0 ; i < keys_num ; ++i) {
5863
+ VALUE entry = rb_ary_entry (keys , static_cast <long >(i));
5864
5864
cb_check_type (entry, T_STRING);
5865
- req.fields .emplace_back (RSTRING_PTR (entry), static_cast <std::size_t >(RSTRING_LEN (entry)));
5865
+ req.keys .emplace_back (RSTRING_PTR (entry), static_cast <std::size_t >(RSTRING_LEN (entry)));
5866
5866
}
5867
5867
if (!NIL_P (options)) {
5868
5868
if (VALUE ignore_if_exists = rb_hash_aref (options, rb_id2sym (rb_intern (" ignore_if_exists" ))); ignore_if_exists == Qtrue) {
@@ -6292,7 +6292,7 @@ cb_Backend_collection_query_index_create(VALUE self,
6292
6292
VALUE scope_name,
6293
6293
VALUE collection_name,
6294
6294
VALUE index_name,
6295
- VALUE fields ,
6295
+ VALUE keys ,
6296
6296
VALUE options)
6297
6297
{
6298
6298
const auto & cluster = cb_backend_to_cluster (self);
@@ -6301,7 +6301,7 @@ cb_Backend_collection_query_index_create(VALUE self,
6301
6301
Check_Type (scope_name, T_STRING);
6302
6302
Check_Type (collection_name, T_STRING);
6303
6303
Check_Type (index_name, T_STRING);
6304
- Check_Type (fields , T_ARRAY);
6304
+ Check_Type (keys , T_ARRAY);
6305
6305
if (!NIL_P (options)) {
6306
6306
Check_Type (options, T_HASH);
6307
6307
}
@@ -6313,12 +6313,12 @@ cb_Backend_collection_query_index_create(VALUE self,
6313
6313
req.scope_name = cb_string_new (scope_name);
6314
6314
req.collection_name = cb_string_new (collection_name);
6315
6315
req.index_name = cb_string_new (index_name);
6316
- auto fields_num = static_cast <std::size_t >(RARRAY_LEN (fields ));
6317
- req.fields .reserve (fields_num );
6318
- for (std::size_t i = 0 ; i < fields_num ; ++i) {
6319
- VALUE entry = rb_ary_entry (fields , static_cast <long >(i));
6316
+ auto keys_num = static_cast <std::size_t >(RARRAY_LEN (keys ));
6317
+ req.keys .reserve (keys_num );
6318
+ for (std::size_t i = 0 ; i < keys_num ; ++i) {
6319
+ VALUE entry = rb_ary_entry (keys , static_cast <long >(i));
6320
6320
cb_check_type (entry, T_STRING);
6321
- req.fields .emplace_back (RSTRING_PTR (entry), static_cast <std::size_t >(RSTRING_LEN (entry)));
6321
+ req.keys .emplace_back (RSTRING_PTR (entry), static_cast <std::size_t >(RSTRING_LEN (entry)));
6322
6322
}
6323
6323
if (!NIL_P (options)) {
6324
6324
if (VALUE ignore_if_exists = rb_hash_aref (options, rb_id2sym (rb_intern (" ignore_if_exists" ))); ignore_if_exists == Qtrue) {
0 commit comments