Created
May 26, 2020 20:35
-
-
Save jvanasco/da298af9445863126dd041b40d51da01 to your computer and use it in GitHub Desktop.
_bind_processors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@util.memoized_property | |
def _bind_processors(self): | |
return dict( | |
(key, value) | |
for key, value in ( | |
( | |
self.bind_names[bindparam], | |
bindparam.type._cached_bind_processor(self.dialect) | |
if not bindparam._expanding_in_types | |
else tuple( | |
elem_type._cached_bind_processor(self.dialect) | |
for elem_type in bindparam._expanding_in_types | |
), | |
) | |
for bindparam in self.bind_names | |
) | |
if value is not None | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment