(db_connection)
| 45 | |
| 46 | |
| 47 | def 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 | |
| 61 | def schema_info(db_connection): |
no test coverage detected