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

Method default_collection

couchbase/bucket.py:104–111  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

102 return scope.collection(collection_name)
103
104 def default_collection(self) -> Collection:
105 """Creates a :class:`~couchbase.collection.Collection` instance of the default collection.
106
107 Returns:
108 :class:`~couchbase.collection.Collection`: A :class:`~couchbase.collection.Collection` instance of the default collection.
109 """ # noqa: E501
110 scope = self.default_scope()
111 return scope.collection(Collection.default_name())
112
113 def ping(self,
114 *opts, # type: PingOptions

Callers 15

test_rate_limitsMethod · 0.45
mainFunction · 0.45
kv_operations.pyFile · 0.45
mainFunction · 0.45
simple_txns.pyFile · 0.45
usermgmt.pyFile · 0.45

Calls 3

default_scopeMethod · 0.95
collectionMethod · 0.45
default_nameMethod · 0.45