MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / offset

Method offset

lib/sqlalchemy/orm/query.py:2664–2673  ·  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

2662 @_generative
2663 @_assertions(_no_statement_condition)
2664 def offset(self, offset: _LimitOffsetType) -> Self:
2665 """Apply an ``OFFSET`` to the query and return the newly resulting
2666 ``Query``.
2667
2668 .. seealso::
2669
2670 :meth:`_sql.Select.offset` - v2 equivalent method.
2671 """
2672 self._offset_clause = sql_util._offset_or_limit_clause(offset)
2673 return self
2674
2675 @_generative
2676 @_assertions(_no_statement_condition)

Calls 1