(db_url: str, table_name: str, schema_type: str)
| 262 | |
| 263 | @st.cache_resource |
| 264 | def get_viewer(db_url: str, table_name: str, schema_type: str) -> SQLExperienceViewer: |
| 265 | config = StorageConfig() |
| 266 | config.name = table_name |
| 267 | config.path = db_url |
| 268 | config.schema_type = schema_type |
| 269 | config.storage_type = "sql" |
| 270 | config.wrap_in_ray = False |
| 271 | return SQLExperienceViewer(config) |
| 272 | |
| 273 | |
| 274 | def main(): # noqa: [C901] |
no test coverage detected