(self, anon_map, bindparams)
| 2242 | return c |
| 2243 | |
| 2244 | def _gen_cache_key(self, anon_map, bindparams): |
| 2245 | _gen_cache_ok = self.__class__.__dict__.get("inherit_cache", False) |
| 2246 | |
| 2247 | if not _gen_cache_ok: |
| 2248 | if anon_map is not None: |
| 2249 | anon_map[NO_CACHE] = True |
| 2250 | return None |
| 2251 | |
| 2252 | id_, found = anon_map.get_anon(self) |
| 2253 | if found: |
| 2254 | return (id_, self.__class__) |
| 2255 | |
| 2256 | if bindparams is not None: |
| 2257 | bindparams.append(self) |
| 2258 | |
| 2259 | return ( |
| 2260 | id_, |
| 2261 | self.__class__, |
| 2262 | self.type._static_cache_key, |
| 2263 | ( |
| 2264 | anon_map[self._anon_map_key] |
| 2265 | if self._anon_map_key is not None |
| 2266 | else self.key |
| 2267 | ), |
| 2268 | self.literal_execute, |
| 2269 | ) |
| 2270 | |
| 2271 | def _convert_to_unique(self): |
| 2272 | if not self.unique: |
no test coverage detected