MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / schema_json_info

Function schema_json_info

explorer/schema.py:47–58  ·  view source on GitHub ↗
(db_connection)

Source from the content-addressed store, hash-verified

45
46
47def schema_json_info(db_connection):
48 key = connection_schema_json_cache_key(db_connection.id)
49 ret = cache.get(key)
50 if ret:
51 return ret
52 try:
53 si = schema_info(db_connection) or []
54 except InvalidExplorerConnectionException:
55 return []
56 json_schema = transform_to_json_schema(si)
57 cache.set(key, json_schema)
58 return json_schema
59
60
61def schema_info(db_connection):

Callers 2

getMethod · 0.90
query_viewmodelFunction · 0.90

Calls 4

schema_infoFunction · 0.85
transform_to_json_schemaFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected