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

sql/postgres: unmarshal HCL enum #445

Merged
merged 3 commits into from
Jan 20, 2022
Merged

sql/postgres: unmarshal HCL enum #445

merged 3 commits into from
Jan 20, 2022

Conversation

masseelch
Copy link
Member

@masseelch masseelch commented Jan 19, 2022

This is the Unmarshal part of the postgres support for enums.

@masseelch masseelch changed the title Feat/enum sql/postgres: unmarshal HCL enum Jan 19, 2022
// Realm converts the schemas and tables into a schema.Realm.
func Realm(schemas []*sqlspec.Schema, tables []*sqlspec.Table) (*schema.Realm, error) {
// Realm converts the schemas and tables of the doc into a schema.Realm.
func Realm(d doc) (*schema.Realm, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer not to use an unexported type as input to an exported method

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True

@masseelch masseelch merged commit 4306a49 into master Jan 20, 2022
@masseelch masseelch deleted the feat/enum branch January 20, 2022 06:57
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.

3 participants