MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / default_collection

Method default_collection

acouchbase/bucket.py:115–122  ·  view source on GitHub ↗

Creates a :class:`~acouchbase.collection.Collection` instance of the default collection. Returns: :class:`~acouchbase.collection.Collection`: A :class:`~acouchbase.collection.Collection` instance of the default collection.

(self)

Source from the content-addressed store, hash-verified

113 return scope.collection(collection_name)
114
115 def default_collection(self):
116 """Creates a :class:`~acouchbase.collection.Collection` instance of the default collection.
117
118 Returns:
119 :class:`~acouchbase.collection.Collection`: A :class:`~acouchbase.collection.Collection` instance of the default collection.
120 """ # noqa: E501
121 scope = self.default_scope()
122 return scope.collection(Collection.default_name())
123
124 async def ping(self,
125 *opts, # type: PingOptions

Callers 7

test_kv_op_chainMethod · 0.45
get_environmentMethod · 0.45
test_rate_limitsMethod · 0.45

Calls 3

default_scopeMethod · 0.95
collectionMethod · 0.45
default_nameMethod · 0.45

Tested by 7

test_kv_op_chainMethod · 0.36
get_environmentMethod · 0.36
test_rate_limitsMethod · 0.36