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

Function is_database_url

trinity/buffer/storage/queue.py:20–21  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

18
19
20def is_database_url(path: str) -> bool:
21 return any(path.startswith(prefix) for prefix in ["sqlite:///", "postgresql://", "mysql://"])
22
23
24def is_json_file(path: str) -> bool:

Callers 3

_resolve_from_configFunction · 0.90
_init_input_storageMethod · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected