Source code for q2_sdk.models.cores.restricted_queries.base_restricted_query
from q2_sdk.core.exceptions import NotExecutableError
from q2_sdk.core.q2_logging.logger import Q2LoggerType
[docs]
class BaseRestrictedQuery:
"""This is a query type that allows for building but not running"""
def __init__(self, logger: Q2LoggerType):
self.logger = logger
def build_query(self) -> str:
raise NotImplementedError
def execute(self):
raise NotExecutableError("This query is not to be executed")