class documentation

Represent a 'custom' operator. :class:`.custom_op` is normally instantiated when the :meth:`.Operators.op` or :meth:`.Operators.bool_op` methods are used to create a custom operator callable. The class can also be used directly when programmatically constructing expressions. E.g. to represent the "factorial" operation:: from sqlalchemy.sql import UnaryExpression from sqlalchemy.sql import operators from sqlalchemy import Numeric unary = UnaryExpression(table.c.somecolumn, modifier=operators.custom_op("!"), type_=Numeric) .. seealso:: :meth:`.Operators.op` :meth:`.Operators.bool_op`

Method __call__ Undocumented
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Class Variable __name__ Undocumented
Class Variable __slots__ Undocumented
Instance Variable eager_grouping Undocumented
Instance Variable is_comparison Undocumented
Instance Variable natural_self_precedent Undocumented
Instance Variable opstring Undocumented
Instance Variable precedence Undocumented
Instance Variable python_impl Undocumented
Instance Variable return_type Undocumented
def __call__(self, left: Operators, right: Optional[Any] = None, *other: Any, **kwargs: Any) -> Operators: (source)
def __eq__(self, other: Any) -> bool: (source)

Undocumented

def __hash__(self) -> int: (source)

Undocumented

def __init__(self, opstring: str, precedence: int = 0, is_comparison: bool = False, return_type: Optional[Union[Type[TypeEngine[_T]], TypeEngine[_T]]] = None, natural_self_precedent: bool = False, eager_grouping: bool = False, python_impl: Optional[Callable[..., Any]] = None): (source)

Undocumented

eager_grouping = (source)

Undocumented

is_comparison = (source)

Undocumented

natural_self_precedent = (source)

Undocumented

opstring = (source)

Undocumented

precedence = (source)

Undocumented

python_impl = (source)

Undocumented

return_type = (source)

Undocumented