class documentation
class custom_op(OperatorType, Generic[
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 |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | natural |
Undocumented |
Instance Variable | opstring |
Undocumented |
Instance Variable | precedence |
Undocumented |
Instance Variable | python |
Undocumented |
Instance Variable | return |
Undocumented |
def __call__(self, left:
Operators
, right: Optional[ Any]
= None, *other: Any
, **kwargs: Any
) -> Operators
:
(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