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

Create views with schemas #651

Closed
wants to merge 2 commits into from

Conversation

argmonster
Copy link

@argmonster argmonster commented Oct 26, 2022

Add functionality to create_view and drop_view that allows a non-default schema to be specified. #650

previous functionality did not support create/drop of views within a
schema. This causes issues when a users is expecting the view to exist
within the schema specified by the metadata object - but it is instead
created in the default schema regardless.

adding in fuctionality to support creation of views within a schema as
provided by the metadata object. Defaults to None if no schema is
present.

adding in functionality to specify schema when dropping view as provided
by metadata object

modified:   sqlalchemy_utils/view.py
some of the lines were longer than the linter liked

modified:   sqlalchemy_utils/view.py
@argmonster
Copy link
Author

actually this looks like I have duplicated #621

rec added a commit to rec/sqlalchemy-utils that referenced this pull request Oct 27, 2022
@kvesteri
Copy link
Owner

Closing as this is a duplicate of #621

@kvesteri kvesteri closed this Feb 12, 2023
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.

2 participants