MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get_keys

Method get_keys

pymongo/synchronous/encryption.py:1103–1113  ·  view source on GitHub ↗

Get all of the data keys. :return: An instance of :class:`~pymongo.cursor.Cursor` over the data key documents. .. versionadded:: 4.2

(self)

Source from the content-addressed store, hash-verified

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``.

Calls 2

_check_closedMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected