def get_e2e_device_keys(self, query_list):
        def _get_e2e_device_keys(txn):
            result = {}
            for user_id, device_id in query_list:
                user_result = result.setdefault(user_id, {})
                keyvalues = {"user_id": user_id}
                if device_id:
                    keyvalues["device_id"] = device_id
                rows = self._simple_select_list_txn(
                    txn, table="e2e_device_keys_json",
                    keyvalues=keyvalues,
                    retcols=["device_id", "key_json"]
                )
                for row in rows:
                    user_result[row["device_id"]] = row["key_json"]
            return result
        return self.runInteraction("get_e2e_device_keys", _get_e2e_device_keys)
Return containers that belong to a particular group.
dataset/ETHPy150Open matrix-org/synapse/synapse/storage/end_to_end_keys.py/EndToEndKeyStore.get_e2e_device_keys--crossover with--dataset/ETHPy150Open openstack/openstack-ansible/scripts/inventory-manage.py/get_containers_for_group