MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / datasource_exists

Function datasource_exists

api/database/datasource_repo.py:42–58  ·  view source on GitHub ↗

Check if a datasource exists by account and container Parameters ---------- account : str The account name. container : str The container name. Returns ------- bool True if the datasource exists, False otherwise.

(account, container)

Source from the content-addressed store, hash-verified

40
41
42async def datasource_exists(account, container) -> bool:
43 """
44 Check if a datasource exists by account and container
45
46 Parameters
47 ----------
48 account : str
49 The account name.
50 container : str
51 The container name.
52
53 Returns
54 -------
55 bool
56 True if the datasource exists, False otherwise.
57 """
58 return await get(account, container) is not None
59
60
61async def sync(account: str, container: str):

Callers 2

create_datasourceFunction · 0.90
createFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected