MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _compat_fetchall

Method _compat_fetchall

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

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

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

Source from the content-addressed store, hash-verified

3000 return False
3001
3002 def _compat_fetchall(
3003 self, rp: CursorResult[Unpack[TupleAny]], charset: Optional[str] = None
3004 ) -> Union[Sequence[Row[Unpack[TupleAny]]], Sequence[_DecodingRow]]:
3005 """Proxy result rows to smooth over MySQL-Python driver
3006 inconsistencies."""
3007
3008 return [_DecodingRow(row, charset) for row in rp.fetchall()]
3009
3010 def _compat_fetchone(
3011 self, rp: CursorResult[Unpack[TupleAny]], 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