MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / offset

Method offset

lib/sqlalchemy/orm/query.py:2634–2643  ·  view source on GitHub ↗

Apply an ``OFFSET`` to the query and return the newly resulting ``Query``. .. seealso:: :meth:`_sql.Select.offset` - v2 equivalent method.

(self, offset: _LimitOffsetType)

Source from the content-addressed store, hash-verified

2632 @_generative
2633 @_assertions(_no_statement_condition)
2634 def offset(self, offset: _LimitOffsetType) -> Self:
2635 """Apply an ``OFFSET`` to the query and return the newly resulting
2636 ``Query``.
2637
2638 .. seealso::
2639
2640 :meth:`_sql.Select.offset` - v2 equivalent method.
2641 """
2642 self._offset_clause = sql_util._offset_or_limit_clause(offset)
2643 return self
2644
2645 @_generative
2646 @_assertions(_no_statement_condition)

Calls 1