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

Function schema_info

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

Source from the content-addressed store, hash-verified

59
60
61def schema_info(db_connection):
62 key = connection_schema_cache_key(db_connection.id)
63 ret = cache.get(key)
64 if ret:
65 return ret
66 else:
67 return build_schema_cache_async(db_connection.id)
68
69
70def clear_schema_cache(db_connection):

Callers 4

build_async_schemasFunction · 0.90
getMethod · 0.90
table_schemaFunction · 0.90
schema_json_infoFunction · 0.85

Calls 3

build_schema_cache_asyncFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected