Skip to content

config: Add support for YAML #336

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

Merged
merged 4 commits into from
Feb 12, 2020
Merged

config: Add support for YAML #336

merged 4 commits into from
Feb 12, 2020

Conversation

kyleconroy
Copy link
Collaborator

Both version 1 and version 2 of the config formats can now be expressed
in YAML. sqlc will look for sqlc.yaml defined in the working directory.

Fixes #330

Both version 1 and version 2 of the config formats can now be expressed
in YAML. sqlc will look for `sqlc.yaml` defined in the working directory.
@@ -46,7 +46,8 @@ func TestBadConfigs(t *testing.T) {
},
{
"unknown fields",
"json: unknown field \"foo\"",
`yaml: unmarshal errors:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not happy about this error changing. Going forward, we shouldn't be exposing an error message directory from a dependency.

@kyleconroy kyleconroy merged commit 73b06dc into master Feb 12, 2020
@kyleconroy kyleconroy deleted the yaml branch February 12, 2020 03:29
@mightyguava mightyguava mentioned this pull request Feb 12, 2020
7 tasks
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.

Add support for YAML
1 participant