MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / is_key_exists

Function is_key_exists

web/pgadmin/tools/schema_diff/directory_compare.py:758–770  ·  view source on GitHub ↗

This function is used to iterate the key list and check that key is present in the given dictionary :param key_list: :param target_dict: :return:

(key_list, target_dict)

Source from the content-addressed store, hash-verified

756
757
758def is_key_exists(key_list, target_dict):
759 """
760 This function is used to iterate the key list and check that key is
761 present in the given dictionary
762 :param key_list:
763 :param target_dict:
764 :return:
765 """
766 for key in key_list:
767 if key in target_dict:
768 return key
769
770 return None
771
772
773def _check_key_in_source_target(key, acl_keys, target, source):

Callers 4

directory_diffFunction · 0.85
parse_aclFunction · 0.85
sort_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected