class documentation

class DeprecatedSelectBaseGenerations(object):

Known subclasses: sqlalchemy.sql.selectable.GenerativeSelect

View In Hierarchy

A collection of methods available on _sql.Select and _sql.CompoundSelect, these are all deprecated methods as they modify the object in-place.
Method append​_group​_by Append the given GROUP BY criterion applied to this selectable.
Method append​_order​_by Append the given ORDER BY criterion applied to this selectable.
@util.deprecated('1.4', 'The :meth:`_expression.GenerativeSelect.append_group_by` method is deprecated and will be removed in a future release. Use the generative method :meth:`_expression.GenerativeSelect.group_by`.')
def append_group_by(self, *clauses):

Append the given GROUP BY criterion applied to this selectable.

The criterion will be appended to any pre-existing GROUP BY criterion.

This is an in-place mutation method; the _expression.GenerativeSelect.group_by method is preferred, as it provides standard :term:`method chaining`.

@util.deprecated('1.4', 'The :meth:`_expression.GenerativeSelect.append_order_by` method is deprecated and will be removed in a future release. Use the generative method :meth:`_expression.GenerativeSelect.order_by`.')
def append_order_by(self, *clauses):

Append the given ORDER BY criterion applied to this selectable.

The criterion will be appended to any pre-existing ORDER BY criterion.

This is an in-place mutation method; the _expression.GenerativeSelect.order_by method is preferred, as it provides standard :term:`method chaining`.

See Also

_expression.GenerativeSelect.order_by