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

feat(enum): enum views #704

Merged
merged 2 commits into from Jan 12, 2021
Merged

feat(enum): enum views #704

merged 2 commits into from Jan 12, 2021

Conversation

benjie
Copy link
Member

@benjie benjie commented Jan 12, 2021

Description

Adds support for @enum on views as well as tables. Required re-organizing of the logic, and previously we were relying on the fact that constraints aren't introspected except in the public schemas, but since views don't have constraints we've had to explicitly opt non-public tables out of enums (this should not cause any issues).

Fixes graphile/crystal#1424.

Performance impact

Negligible.

Security impact

None known.

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.

Using a view as an enum table
1 participant