Module: Couchbase
- Defined in:
- lib/couchbase.rb,
lib/couchbase/view.rb,
lib/couchbase/utils.rb,
lib/couchbase/result.rb,
lib/couchbase/bucket.rb,
lib/couchbase/version.rb,
lib/couchbase/view_row.rb,
ext/couchbase_ext/couchbase_ext.c
Overview
| Author: | Couchbase <info@couchbase.com> |
| Copyright: | 2011-2012 Couchbase, Inc. |
| 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.
Defined Under Namespace
Modules: Error Classes: Bucket, Result, Timer, Utils, View, ViewRow
Constant Summary
- VERSION =
"1.2.0.dp6"
Class Attribute Summary (collapse)
-
+ (Hash, String) connection_options
Default connection options.
Class Method Summary (collapse)
-
+ (Bucket) bucket
The connection instance for current thread.
-
+ (Bucket) bucket=(connection)
Set a connection instance for current thread.
-
+ (Bucket) connect(*options)
(also: new)
The method connect initializes new Bucket instance with all arguments passed.
Class Attribute Details
+ (Hash, String) connection_options
Default connection options
70 71 72 |
# File 'lib/couchbase.rb', line 70 def end |
Class Method Details
+ (Bucket) bucket
The connection instance for current thread
87 88 89 |
# File 'lib/couchbase.rb', line 87 def bucket thread_storage[:bucket] ||= connect() end |
+ (Bucket) bucket=(connection)
Set a connection instance for current thread
96 97 98 |
# File 'lib/couchbase.rb', line 96 def bucket=(connection) thread_storage[:bucket] = connection end |
+ (Bucket) connect(*options) Also known as: new
The method connect initializes new Bucket instance with all arguments passed.
56 57 58 |
# File 'lib/couchbase.rb', line 56 def connect(*) Bucket.new(*(.flatten)) end |