Skip to content

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

2 participants