MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / build_foreign_key_map_from_json

Function build_foreign_key_map_from_json

single_eval.py:909–915  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

907
908
909def build_foreign_key_map_from_json(table):
910 with open(table) as f:
911 data = json.load(f)
912 tables = {}
913 for entry in data:
914 tables[entry['db_id']] = build_foreign_key_map(entry)
915 return tables
916
917
918if __name__ == "__main__":

Callers 2

save_fileMethod · 0.90
single_eval.pyFile · 0.70

Calls 2

build_foreign_key_mapFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected