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)
| 40 | |
| 41 | |
| 42 | async 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 | |
| 61 | async def sync(account: str, container: str): |
no test coverage detected