Sha256: 411ef249609493262f2277b6775d5080ed2a88462bb0a4471e67393f0140a972
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
# Author:: Mike Evans <mike@urlgonomics.com> # Copyright:: 2013 Urlgonomics LLC. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # module Couchbase class Bucket include Couchbase::Operations attr_reader :bucket def initialize(bucket) @bucket = bucket end def async @bucket.async end def save_design_doc(name, design_doc, development = false) design_doc = DesignDoc.new(name, design_doc) @bucket.bucket_manager.upsert_design_document(design_doc.create, development) end def query(design_doc, view) View.new(design_doc, view, self) end def flush bucket.bucket_manager.flush end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchbase-jruby-client-1.0.4-java | lib/couchbase/bucket.rb |