Closed NamLH1310 closed 4 months ago
What stops you from spinning up the local dev environment?
@houten11 What you are requesting seems to be out of scope of this library. Generating the code from an SQL Schema file requires parsing the file.
However, you already have schema, why not just spin up local docker and generate code from there?
@go-jet It is because the dsn is changing so the command cannot be stored in Makefile or scripts and I have to teach other people how to use the command many times.
Hi @qazwsxedckll. I assume dsn
is changing because there is no local development set up. Lack of local development is a such bad practice, and adding a new feature to jet just to support such a practice is out of the question.
Also, see this discussion for more info https://github.com/go-jet/jet/discussions/150, https://github.com/go-jet/jet/discussions/165.
I am running to a case where I cannot access to dsn due to ACL. Therefore, reading the schema from a file would be nice.