Method
_get_crud_kv_pairs
(
cls,
statement: UpdateBase,
kv_iterator: Iterable[Tuple[_DMLColumnArgument, Any]],
needs_to_be_cacheable: bool,
)
Source from the content-addressed store, hash-verified
| 190 | |
| 191 | @classmethod |
| 192 | def _get_crud_kv_pairs( |
| 193 | cls, |
| 194 | statement: UpdateBase, |
| 195 | kv_iterator: Iterable[Tuple[_DMLColumnArgument, Any]], |
| 196 | needs_to_be_cacheable: bool, |
| 197 | ) -> List[Tuple[_DMLColumnElement, Any]]: |
| 198 | return [ |
| 199 | ( |
| 200 | coercions.expect(roles.DMLColumnRole, k), |
| 201 | ( |
| 202 | v |
| 203 | if not needs_to_be_cacheable |
| 204 | else coercions.expect( |
| 205 | roles.ExpressionElementRole, |
| 206 | v, |
| 207 | type_=NullType(), |
| 208 | is_crud=True, |
| 209 | ) |
| 210 | ), |
| 211 | ) |
| 212 | for k, v in kv_iterator |
| 213 | ] |
| 214 | |
| 215 | def _make_extra_froms( |
| 216 | self, |
Callers
nothing calls this directly
Tested by
no test coverage detected