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