bee.osql.condition_impl
class
Expression:
Expression( field_name: str = None, Op: bee.bee_enum.Op = None, op_type=None, value: Any = None, op_num: int = None, value2: Any = None)
class
PreparedValue:
class
ConditionStruct:
ConditionStruct( where: str, pv: List[PreparedValue], values: List, suidType: bee.bee_enum.SuidType, whereFields: Set, selectFields: str, start: int, size: int, has_for_update: bool)
class
ConditionUpdateSetStruct:
ConditionUpdateSetStruct( updateSet: str, pv: List[PreparedValue], values: List, suidType: bee.bee_enum.SuidType, updateSetFields: Set)
Condition: used to construct complex WHERE, UPDATE statements and so on.
def
having( self, functionType: bee.bee_enum.FunctionType, field: str, op: bee.bee_enum.Op, value: Any) -> ConditionImpl:
e.g. having(FunctionType.MIN, "field", Op.ge, 60)-->having min(field)>=60
def
orderBy3( self, functionType: bee.bee_enum.FunctionType, field: str, orderType: bee.bee_enum.OrderType) -> ConditionImpl:
eg: orderBy3(FunctionType.MAX, "total", OrderType.DESC)-->order by max(total) desc
class
ParseCondition:
@staticmethod
def
parseUpdateSet( expressions, condition: bee.condition.Condition) -> ConditionUpdateSetStruct: