Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ task :cache_cxx_dependencies do
"-DCOUCHBASE_CXX_CLIENT_BUILD_TOOLS=OFF",
"-DCOUCHBASE_CXX_CLIENT_BUILD_DOCS=OFF",
"-DCOUCHBASE_CXX_CLIENT_STATIC_BORINGSSL=ON",
"-DCOUCHBASE_CXX_CLIENT_BUILD_OPENTELEMETRY=OFF",
"-DCPM_DOWNLOAD_ALL=ON",
"-DCPM_USE_NAMED_CACHE_DIRECTORIES=ON",
"-DCPM_USE_LOCAL_PACKAGES=OFF",
Expand Down Expand Up @@ -226,6 +227,7 @@ task :cache_cxx_dependencies do
"-DCPM_USE_LOCAL_PACKAGES=OFF",
"-DCPM_SOURCE_CACHE=#{cpm_cache_dir}",
"-DCOUCHBASE_CXX_CLIENT_EMBED_MOZILLA_CA_BUNDLE_ROOT=#{cpm_cache_dir}",
"-DCOUCHBASE_CXX_CLIENT_BUILD_OPENTELEMETRY=OFF",
]
cmake_flags << "-DCMAKE_C_COMPILER=#{cc}" if cc
cmake_flags << "-DCMAKE_CXX_COMPILER=#{cxx}" if cxx
Expand Down
2 changes: 1 addition & 1 deletion ext/couchbase
1 change: 1 addition & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def sys(*cmd)
"-DCOUCHBASE_CXX_CLIENT_BUILD_TOOLS=OFF",
"-DCOUCHBASE_CXX_CLIENT_BUILD_EXAMPLES=OFF",
"-DCOUCHBASE_CXX_CLIENT_INSTALL=OFF",
"-DCOUCHBASE_CXX_CLIENT_BUILD_OPENTELEMETRY=OFF",
]

if version.start_with?("4")
Expand Down
2 changes: 2 additions & 0 deletions ext/rcb_views.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
* limitations under the License.
*/

#define COUCHBASE_CXX_CLIENT_IGNORE_CORE_DEPRECATIONS
#include <core/cluster.hxx>
#include <core/design_document_namespace_fmt.hxx>
#include <core/operations/document_view.hxx>
#include <core/operations/management/view_index_drop.hxx>
#include <core/operations/management/view_index_get.hxx>
#include <core/operations/management/view_index_get_all.hxx>
#include <core/operations/management/view_index_upsert.hxx>
#undef COUCHBASE_CXX_CLIENT_IGNORE_CORE_DEPRECATIONS

#include <future>

Expand Down
8 changes: 8 additions & 0 deletions lib/couchbase/bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def default_collection
# ))
#
# @return [ViewResult]
#
# @deprecated Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
# Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
# Index Service (GSI) and the Query Service (SQL++).
def view_query(design_document_name, view_name, options = Options::View::DEFAULT)
@observability.record_operation(Observability::OP_VIEW_QUERY, opts.parent_span, self, :views) do |_obs_handler|
resp = @backend.document_view(@name, design_document_name, view_name, options.namespace, options.to_backend)
Expand All @@ -110,6 +114,10 @@ def collections
end

# @return [Management::ViewIndexManager]
#
# @deprecated Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
# Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
# Index Service (GSI) and the Query Service (SQL++).
def view_indexes
Management::ViewIndexManager.new(@backend, @name, @observability)
end
Expand Down
4 changes: 4 additions & 0 deletions lib/couchbase/management/view_index_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def initialize(timeout: nil,
# All methods (except publish) have a required "namespace" argument indicating whether the operation targets a
# development document or a production document. The type of this argument is [Symbol] with allowed values
# +:production+ and +:development+.
#
# @deprecated Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
# Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
# Index Service (GSI) and the Query Service (SQL++).
class ViewIndexManager
alias inspect to_s

Expand Down
Loading