MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fetchone_impl

Method _fetchone_impl

lib/sqlalchemy/engine/result.py:1877–1888  ·  view source on GitHub ↗
(
        self, hard_close: bool = False
    )

Source from the content-addressed store, hash-verified

1875 return self.iterator
1876
1877 def _fetchone_impl(
1878 self, hard_close: bool = False
1879 ) -> Optional[_InterimRowType[Row[Unpack[TupleAny]]]]:
1880 if self._hard_closed:
1881 self._raise_hard_closed()
1882
1883 row = next(self.iterator, _NO_ROW)
1884 if row is _NO_ROW:
1885 self._soft_close(hard=hard_close)
1886 return None
1887 else:
1888 return row
1889
1890 def _fetchall_impl(
1891 self,

Callers

nothing calls this directly

Calls 2

_raise_hard_closedMethod · 0.95
_soft_closeMethod · 0.95

Tested by

no test coverage detected