MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / fetchall

Method fetchall

lib/sqlalchemy/engine/cursor.py:1469–1478  ·  view source on GitHub ↗
(
        self, result: CursorResult[Any], dbapi_cursor: DBAPICursor
    )

Source from the content-addressed store, hash-verified

1467 return res
1468
1469 def fetchall(
1470 self, result: CursorResult[Any], dbapi_cursor: DBAPICursor
1471 ) -> Any:
1472 try:
1473 ret = list(self._rowbuffer) + list(dbapi_cursor.fetchall())
1474 self._rowbuffer.clear()
1475 result._soft_close()
1476 return ret
1477 except BaseException as e:
1478 self.handle_exception(result, dbapi_cursor, e)
1479
1480
1481class FullyBufferedCursorFetchStrategy(CursorFetchStrategy):

Callers 1

fetchmanyMethod · 0.95

Calls 4

fetchallMethod · 0.45
clearMethod · 0.45
_soft_closeMethod · 0.45
handle_exceptionMethod · 0.45

Tested by

no test coverage detected