MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / fetchall

Method fetchall

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

Source from the content-addressed store, hash-verified

1307 self.handle_exception(result, dbapi_cursor, e)
1308
1309 def fetchall(
1310 self,
1311 result: CursorResult[Any],
1312 dbapi_cursor: DBAPICursor,
1313 ) -> Any:
1314 try:
1315 rows = dbapi_cursor.fetchall()
1316 result._soft_close()
1317 return rows
1318 except BaseException as e:
1319 self.handle_exception(result, dbapi_cursor, e)
1320
1321
1322_DEFAULT_FETCH = CursorFetchStrategy()

Callers

nothing calls this directly

Calls 3

handle_exceptionMethod · 0.95
fetchallMethod · 0.45
_soft_closeMethod · 0.45

Tested by

no test coverage detected