MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/elements.py:4784–4794  ·  view source on GitHub ↗
(
        self,
        element: Union[FunctionElement[_T], FunctionFilter[_T]],
        *order_by: _ColumnExpressionArgument[Any],
    )

Source from the content-addressed store, hash-verified

4782 order_by: ClauseList
4783
4784 def __init__(
4785 self,
4786 element: Union[FunctionElement[_T], FunctionFilter[_T]],
4787 *order_by: _ColumnExpressionArgument[Any],
4788 ):
4789 self.element = element
4790 if not order_by:
4791 raise TypeError("at least one ORDER BY element is required")
4792 self.order_by = ClauseList(
4793 *util.to_list(order_by), _literal_as_text_role=roles.ByOfRole
4794 )
4795
4796 if not TYPE_CHECKING:
4797

Callers

nothing calls this directly

Calls 1

ClauseListClass · 0.85

Tested by

no test coverage detected