sqlc
sqlc copied to clipboard
feat: Split models into dedicated package
This change allows models to be split into a different package. The major benefit of this is to allow multiple sqlc querier packages to use the same scheme, and models. This allows better code modularization and help larger projects keep implementation details independent across logical code modules
@kyleconroy I am not sure how well this is going to work with the current tests, I have it set up so you can override the package of the model's and give a relative path where they should sit. That is how I am currently using it, but it breaks the tests. Do the tests have a go.mod file and a package I could target ?
@kyleconroy can you approve the workflows ? I think the tests should be passed
@kyleconroy any feedback here ? I believe if you approve the workflows it will pass the tests
That sounds great. I will close this PR and get started on a proposal to implement the design