MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _simple_int_clause

Method _simple_int_clause

lib/sqlalchemy/sql/selectable.py:4305–4309  ·  view source on GitHub ↗

True if the clause is a simple integer, False if it is not present or is a SQL expression.

(self, clause: ClauseElement)

Source from the content-addressed store, hash-verified

4303 return self._offset_or_limit_clause_asint(self._limit_clause, "limit")
4304
4305 def _simple_int_clause(self, clause: ClauseElement) -> bool:
4306 """True if the clause is a simple integer, False
4307 if it is not present or is a SQL expression.
4308 """
4309 return isinstance(clause, _OffsetLimitParam)
4310
4311 @property
4312 def _offset(self) -> Optional[int]:

Callers 3

_use_topMethod · 0.80
fetch_clauseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected