Skip to content

Instantly share code, notes, and snippets.

@jvanasco

jvanasco/compiler.py

Created May 26, 2020
Embed
What would you like to do?
_bind_processors
@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