Get a collection of this database by name. Raises InvalidName if an invalid collection name is used. :param name: the name of the collection to get
(self, name: str)
| 241 | return self.__getitem__(name) |
| 242 | |
| 243 | def __getitem__(self, name: str) -> Collection[_DocumentType]: |
| 244 | """Get a collection of this database by name. |
| 245 | |
| 246 | Raises InvalidName if an invalid collection name is used. |
| 247 | |
| 248 | :param name: the name of the collection to get |
| 249 | """ |
| 250 | return Collection(self, name) |
| 251 | |
| 252 | def get_collection( |
| 253 | self, |