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

fix: Simplify view definition options. #16

Merged
merged 4 commits into from
Dec 16, 2022
Merged

fix: Simplify view definition options. #16

merged 4 commits into from
Dec 16, 2022

Conversation

DanCardin
Copy link
Owner

Avoid the shortcomings of the original interface which required special
avoidance of sqlalchemy and alembic's normal function for awareness of
tables.

Now instead, the registration is done in a way that ensures
alembic/sqlalchemy ignore the objects automatically, while still making
them usable on the orm query interface.

Avoid the shortcomings of the original interface which required special
avoidance of sqlalchemy and alembic's normal function for awareness of
tables.

Now instead, the registration is done in a way that ensures
alembic/sqlalchemy ignore the objects automatically, while still making
them usable on the orm query interface.
In hosted Postgres, like AWS, pg_authid is protected/unavailable. In
reality, we only need the role mapping to oid, which is available on
the pg_roles table instead.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3713960042

  • 73 of 76 (96.05%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.3%) to 96.568%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sqlalchemy_declarative_extensions/view/base.py 57 60 95.0%
Totals Coverage Status
Change from base Build 3648241592: 1.3%
Covered Lines: 1534
Relevant Lines: 1589

💛 - Coveralls

@DanCardin DanCardin merged commit d4adb75 into main Dec 16, 2022
@DanCardin DanCardin deleted the dc/view-diff branch December 16, 2022 16:00
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

2 participants