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

Method _map

evaluation/test-suite-sql-eval/process_sql.py:64–76  ·  view source on GitHub ↗
(self, schema)

Source from the content-addressed store, hash-verified

62 return self._idMap
63
64 def _map(self, schema):
65 idMap = {'*': "__all__"}
66 id = 1
67 for key, vals in schema.items():
68 for val in vals:
69 idMap[key.lower() + "." + val.lower()] = "__" + key.lower() + "." + val.lower() + "__"
70 id += 1
71
72 for key in schema:
73 idMap[key.lower()] = "__" + key.lower() + "__"
74 id += 1
75
76 return idMap
77
78
79def get_schema(db):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected