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

Method _map

hardness_eval.py:93–105  ·  view source on GitHub ↗
(self, schema)

Source from the content-addressed store, hash-verified

91 return self._idMap
92
93 def _map(self, schema):
94 idMap = {'*': "__all__"}
95 id = 1
96 for key, vals in schema.items():
97 for val in vals:
98 idMap[key.lower() + "." + val.lower()] = "__" + key.lower() + "." + val.lower() + "__"
99 id += 1
100
101 for key in schema:
102 idMap[key.lower()] = "__" + key.lower() + "__"
103 id += 1
104
105 return idMap
106
107
108def get_schema(db):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected