Coverage for packages/sql-smith/src/sql_smith/interfaces/criteria_interface.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2024-01-01 00:00 +0000

1from abc import abstractmethod 

2 

3from .statement_interface import StatementInterface 

4 

5 

6class CriteriaInterface(StatementInterface): 

7 @abstractmethod 

8 def and_(self, right: "CriteriaInterface") -> "CriteriaInterface": 

9 raise NotImplementedError("and_ must be implemented") 

10 

11 @abstractmethod 

12 def or_(self, right: "CriteriaInterface") -> "CriteriaInterface": 

13 raise NotImplementedError("or_ must be implemented")