diff --git a/ext/couchbase b/ext/couchbase index b80886d6..083306bf 160000 --- a/ext/couchbase +++ b/ext/couchbase @@ -1 +1 @@ -Subproject commit b80886d6b4a75c604d26a4b54252a1e78db42297 +Subproject commit 083306bf368783d4f28e59b612e1600241295834 diff --git a/ext/rcb_extras.cxx b/ext/rcb_extras.cxx index 731e4a66..6cb54765 100644 --- a/ext/rcb_extras.cxx +++ b/ext/rcb_extras.cxx @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -318,6 +319,13 @@ cb_Backend_path_escape(VALUE self, VALUE data) return cb_str_new(encoded); } +VALUE +cb_Backend_allow_enterprise_analytics(VALUE self) +{ + core::operations::analytics_request::allow_enterprise_analytics = true; + return Qnil; +} + int cb_for_each_form_encode_value(VALUE key, VALUE value, VALUE arg) { @@ -390,5 +398,7 @@ init_extras(VALUE cBackend) rb_define_singleton_method(cBackend, "query_escape", cb_Backend_query_escape, 1); rb_define_singleton_method(cBackend, "path_escape", cb_Backend_path_escape, 1); rb_define_singleton_method(cBackend, "form_encode", cb_Backend_form_encode, 1); + rb_define_singleton_method( + cBackend, "allow_enterprise_analytics", cb_Backend_allow_enterprise_analytics, 0); } } // namespace couchbase::ruby