Get all of the data keys. :return: An instance of :class:`~pymongo.cursor.Cursor` over the data key documents. .. versionadded:: 4.2
(self)
| 1101 | return self._key_vault_coll.find_one({"_id": id}) |
| 1102 | |
| 1103 | def get_keys(self) -> Cursor[RawBSONDocument]: |
| 1104 | """Get all of the data keys. |
| 1105 | |
| 1106 | :return: An instance of :class:`~pymongo.cursor.Cursor` over the data key |
| 1107 | documents. |
| 1108 | |
| 1109 | .. versionadded:: 4.2 |
| 1110 | """ |
| 1111 | self._check_closed() |
| 1112 | assert self._key_vault_coll is not None |
| 1113 | return self._key_vault_coll.find({}) |
| 1114 | |
| 1115 | def delete_key(self, id: Binary) -> DeleteResult: |
| 1116 | """Delete a key document in the key vault collection that has the given ``key_id``. |
no test coverage detected