MCPcopy
hub / github.com/zvtvz/zvt / query_data

Function query_data

src/zvt/rest/data.py:41–47  ·  view source on GitHub ↗

Get schemas by provider

(provider: str, schema: str)

Source from the content-addressed store, hash-verified

39 response_model=list,
40)
41def query_data(provider: str, schema: str):
42 """
43 Get schemas by provider
44 """
45 model: contract.Mixin = contract_api.get_schema_by_name(schema)
46 with contract_api.DBSession(provider=provider, data_schema=model)() as session:
47 return jsonable_encoder(model.query_data(session=session, limit=100, return_type="domain"))

Callers

nothing calls this directly

Calls 1

query_dataMethod · 0.80

Tested by

no test coverage detected