r"""Construct a :class:`.FunctionElement`. :param \*clauses: list of column expressions that form the arguments of the SQL function call. :param \**kwargs: additional kwargs are typically consumed by subclasses. .. seealso:: :data:`.func`
(
self, *clauses: _ColumnExpressionOrLiteralArgument[Any]
)
| 162 | clause_expr: Grouping[Any] |
| 163 | |
| 164 | def __init__( |
| 165 | self, *clauses: _ColumnExpressionOrLiteralArgument[Any] |
| 166 | ) -> None: |
| 167 | r"""Construct a :class:`.FunctionElement`. |
| 168 | |
| 169 | :param \*clauses: list of column expressions that form the arguments |
| 170 | of the SQL function call. |
| 171 | |
| 172 | :param \**kwargs: additional kwargs are typically consumed by |
| 173 | subclasses. |
| 174 | |
| 175 | .. seealso:: |
| 176 | |
| 177 | :data:`.func` |
| 178 | |
| 179 | :class:`.Function` |
| 180 | |
| 181 | """ |
| 182 | args: Sequence[_ColumnExpressionArgument[Any]] = [ |
| 183 | coercions.expect( |
| 184 | roles.ExpressionElementRole, |
| 185 | c, |
| 186 | name=getattr(self, "name", None), |
| 187 | apply_propagate_attrs=self, |
| 188 | ) |
| 189 | for c in clauses |
| 190 | ] |
| 191 | self._has_args = self._has_args or bool(args) |
| 192 | self.clause_expr = Grouping( |
| 193 | ClauseList(operator=operators.comma_op, group_contents=True, *args) |
| 194 | ) |
| 195 | |
| 196 | _non_anon_label = None |
| 197 |
nothing calls this directly
no test coverage detected