Skip to content
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

Merged
merged 4 commits into from
May 1, 2024

Conversation

ValeriyWorld
Copy link
Contributor

No description provided.

@ValeriyWorld ValeriyWorld self-assigned this Apr 30, 2024
Comment on lines 121 to 126
return [
PrimaryKey(*raw)
for raw in self.execute(
self.pks_query(self.get_filtered_schema_names_str), cur
)
]
Copy link
Contributor

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

Suggested change
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]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@ValeriyWorld ValeriyWorld merged commit 2de9cd9 into main May 1, 2024
3 checks passed
@ValeriyWorld ValeriyWorld deleted the fix_filters_on_schema_for_postgresql_adapter branch May 1, 2024 15:17
@SamuelAdamsMcGuire
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants