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
8 changes: 8 additions & 0 deletions lib/couchbase/bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,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)
resp = @backend.document_view(@name, design_document_name, view_name, options.namespace, options.to_backend)
ViewResult.new do |res|
Expand All @@ -105,6 +109,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)
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