v1.0.0
This commit is contained in:
@@ -134,8 +134,11 @@ class Expression(object):
|
||||
def and_(self, expression: Expression):
|
||||
return Expression(f"{self._expr} AND {expression}")
|
||||
|
||||
def or_(self, expression: Expression):
|
||||
return Expression(f"{self._expr} OR {expression}")
|
||||
def or_(self, expression: Expression, high_priority: bool = False):
|
||||
statement = f"{self._expr} OR {expression}"
|
||||
if high_priority:
|
||||
statement = f"({statement})"
|
||||
return Expression(statement)
|
||||
|
||||
def exists(self, not_: bool = False):
|
||||
mark = "EXISTS"
|
||||
|
||||
Reference in New Issue
Block a user