-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add schema filtering for columns, pks, fks, enums, unique keys #65
Add schema filtering for columns, pks, fks, enums, unique keys #65
Conversation
return [ | ||
PrimaryKey(*raw) | ||
for raw in self.execute( | ||
self.pks_query(self.get_filtered_schema_names_str), cur | ||
) | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we cannot use list comprehension inline let's decompose it then for readability
return [ | |
PrimaryKey(*raw) | |
for raw in self.execute( | |
self.pks_query(self.get_filtered_schema_names_str), cur | |
) | |
] | |
raw_data = self.execute( | |
self.pks_query(self.get_filtered_schema_names_str), cur | |
) | |
return [PrimaryKey(*raw) for raw in raw_data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Is there any documentation on how to implement this? I know how to filter schemas but no columns and so on. Thanks for this addition! |
No description provided.