-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Support postgresql enums Adds support for postgresql enums, addressing #415. This uses the [pg_type](https://www.postgresql.org/docs/current/catalog-pg-type.html) and [pg_enum](https://www.postgresql.org/docs/current/catalog-pg-enum.html) tables to discover the valid enum values for any columns using ## Limitations There are other [postgresql custom types](https://www.postgresql.org/docs/current/sql-createtype.html) that I am not attempting to support in this PR: * composite type * a range type * a base type * a shell type ## Validation Using the enum example in the [postgres docs](https://www.postgresql.org/docs/current/datatype-enum.html), the integration test creates a new custom enum type, uses it in the test table, and expects the recap `EnumType` to be found. I also added a unit test for basically the same thing.
- Loading branch information
Showing
4 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters