MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / ResultColumnsEntry

Class ResultColumnsEntry

lib/sqlalchemy/sql/compiler.py:377–405  ·  view source on GitHub ↗

Tracks a column expression that is expected to be represented in the result rows for this statement. This normally refers to the columns clause of a SELECT statement but may also refer to a RETURNING clause, as well as for dialect-specific emulations.

Source from the content-addressed store, hash-verified

375
376
377class ResultColumnsEntry(NamedTuple):
378 """Tracks a column expression that is expected to be represented
379 in the result rows for this statement.
380
381 This normally refers to the columns clause of a SELECT statement
382 but may also refer to a RETURNING clause, as well as for dialect-specific
383 emulations.
384
385 """
386
387 keyname: str
388 """string name that's expected in cursor.description"""
389
390 name: str
391 """column name, may be labeled"""
392
393 objects: Tuple[Any, ...]
394 """sequence of objects that should be able to locate this column
395 in a RowMapping. This is typically string names and aliases
396 as well as Column objects.
397
398 """
399
400 type: TypeEngine[Any]
401 """Datatype to be associated with this column. This is where
402 the "result processing" logic directly links the compiled statement
403 to the rows that come back from the cursor.
404
405 """
406
407
408class _ResultMapAppender(Protocol):

Callers 2

_add_to_result_mapMethod · 0.85
visit_selectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected