Replies: 2 comments 4 replies
-
I can privately provide actual migration that use these definitions if that would be helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah nice one, I didn't know about Dhall. We actually leverage JSON Schema to solve this, here you can find the schema definition: https://github.com/xataio/pgroll/blob/main/schema.json, would this be useful in this case? I don't know if Dhall brings some other features that JSON schema lacks |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think Dhall type definitions for migrations would be a nice thing to have. It would allow typechecking the migration schema without needing to run pgroll and would allow us to write helper functions for more compact schema migration definitions.
I already have rough definitions for the migrations schemas that I use at work: https://gist.github.com/ilyakooo0/1b76cc0b63cb9d8d2e4e9e5c718c2f35
Let me know if this is something you might be interested in. I can provide more details if you need them.
I would also be willing to maintain the definitions in the pgroll repo.
Beta Was this translation helpful? Give feedback.
All reactions