Database schema evaluator from migrations as standalone project or pkg #3750
Unanswered
fira42073
asked this question in
Feature Requests & Ideas
Replies: 0 comments
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.
-
Hi! I wonder if it would make sense to export this structure in a public package?
I myself have a couple of ideas where I'd need some database schema and I'd generate some stuff from it. I recognize that it may be wildly out of scope for this project, but the code is kinda already there, so it would be cool just to export it as-is for other tools to potentially use.
One of them that would potentially benefit from it is tbls. Right now, you have to establish a connection to a database, and the generation usually looks something like this
which means somehow provisioning the database, running the migrations and then stopping it, which may be quite a bit cumbersome.
On the other hand, I'm not sure if the existing Schema structure from internal/catalog provides all of the required types and data to the tbls to actually generate the documentation. For example it might rely on some comments or other database objects that are not relevant in scope of sqlc.
Anyway, please let me know what you think of all of this.
Beta Was this translation helpful? Give feedback.
All reactions