BQL
ptnad.api.bql.BQLAPI
Methods:
Name | Description |
---|---|
execute |
Execute a BQL query on a specific source. |
execute_raw |
Execute a BQL query on a specific source and return the full response. |
execute
Execute a BQL query on a specific source.
Args: query (str): The BQL query to execute. source (str): The identifier of the storage to query. Defaults to "2" (live).
Returns: Any: The result of the query execution.
Raises: PTNADAPIError: If there's an error executing the query.
Source code in src/ptnad/api/bql.py
execute_raw
Execute a BQL query on a specific source and return the full response.
Args: query (str): The BQL query to execute. source (str): The identifier of the storage to query. Defaults to "2" (live).
Returns: BQLResponse: An object containing the query results, execution time, total hits, and debug info.
Raises: PTNADAPIError: If there's an error executing the query.