MCPcopy Create free account
hub / github.com/FeatureBaseDB/DoctorGPT / apply_schema

Function apply_schema

lib/database.py:59–66  ·  view source on GitHub ↗
(list_of_lists, schema)

Source from the content-addressed store, hash-verified

57
58
59def apply_schema(list_of_lists, schema):
60 result = []
61 for row in list_of_lists:
62 dict_row = {}
63 for i, val in enumerate(row):
64 dict_row[schema[i]] = val
65 result.append(dict_row)
66 return result
67
68
69# "sql" key in document should have a valid query

Callers 1

featurebase_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected