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)
| 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 |