MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / get_viewer

Function get_viewer

trinity/buffer/viewer.py:264–271  ·  view source on GitHub ↗
(db_url: str, table_name: str, schema_type: str)

Source from the content-addressed store, hash-verified

262
263@st.cache_resource
264def 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
274def main(): # noqa: [C901]

Callers 1

mainFunction · 0.85

Calls 2

StorageConfigClass · 0.90
SQLExperienceViewerClass · 0.85

Tested by

no test coverage detected