MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _compat_fetchall

Method _compat_fetchall

lib/sqlalchemy/dialects/mysql/base.py:3008–3014  ·  view source on GitHub ↗

Proxy result rows to smooth over MySQL-Python driver inconsistencies.

(
        self, rp: CursorResult[Any], charset: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

3006 return False
3007
3008 def _compat_fetchall(
3009 self, rp: CursorResult[Any], charset: Optional[str] = None
3010 ) -> Union[Sequence[Row[Any]], Sequence[_DecodingRow]]:
3011 """Proxy result rows to smooth over MySQL-Python driver
3012 inconsistencies."""
3013
3014 return [_DecodingRow(row, charset) for row in rp.fetchall()]
3015
3016 def _compat_fetchone(
3017 self, rp: CursorResult[Any], charset: Optional[str] = None

Callers 5

get_sequence_namesMethod · 0.95
get_table_namesMethod · 0.95
get_view_namesMethod · 0.95
_detect_collationsMethod · 0.95
_describe_tableMethod · 0.95

Calls 2

_DecodingRowClass · 0.85
fetchallMethod · 0.45

Tested by

no test coverage detected