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

nix: fix postgrest-dump-schema with optional yaml output #3304

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

laurenceisla
Copy link
Member

Since I'm using --dump-schema a lot for the test schema, I noticed this command existed but was outdated.

Comment on lines 94 to 97
docs = "Dump the loaded schema's SchemaCache as a yaml file.";
docs = "Dump the loaded schema's SchemaCache in JSON or Yaml format.";
args = [
"ARG_OPTIONAL_BOOLEAN([yaml], [y], [Dump the schema cache in Yaml format])"
];
Copy link
Member

Choose a reason for hiding this comment

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

I think you can just remove the YAML option entirely. The reason for its introduction was because we intended to use it to commit a dump of the schema cache to the repo and then have the diff for that as a kind of test. This was discussed in #1699, but has since been superseded by the new snapshot IO test.

It's fine to output JSON only, which is easier to work with for local development / debugging.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, got it! Done.

@wolfgangwalther wolfgangwalther merged commit cf7b9ba into PostgREST:main Mar 7, 2024
25 of 26 checks passed
@laurenceisla laurenceisla deleted the nix-dumpsch branch March 7, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants