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.
| 375 | |
| 376 | |
| 377 | class 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 | |
| 408 | class _ResultMapAppender(Protocol): |
no outgoing calls
no test coverage detected