Skip to content

Instantly share code, notes, and snippets.

@jvanasco
Created May 26, 2020 20:35
Show Gist options
  • Save jvanasco/da298af9445863126dd041b40d51da01 to your computer and use it in GitHub Desktop.
Save jvanasco/da298af9445863126dd041b40d51da01 to your computer and use it in GitHub Desktop.
_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