-
Notifications
You must be signed in to change notification settings - Fork 732
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
feat(codogen): Added the ability to specify a separate package for models. #3379
base: main
Are you sure you want to change the base?
feat(codogen): Added the ability to specify a separate package for models. #3379
Conversation
…nged, an error has been detected
…ind "[]models.*AuthUser"
…on level using the package "golang.org/x/tools/imports " This solves the problem in the same way as for packet separation. In the case when, for example, a package of models has been added to the interfaces, but it is not used there. A problem was also identified due to the fact that the package was not added to the interfaces "github.com/jackc/pgx/v5/pgtype " But the standard tool fixes these problems on its own
@kyleconroy |
I'm also adding the ability to put all entities in a separate package (request and response parameters). So that the storage management system is completely separated from other levels. This will allow you to test other levels separately and in no way depend on the repository. But this is probably already in another PR, so as not to burden this PR. |
issue #835
issue #1951
issue #1941
This will allow you to create a clean project architecture.
I started using sqlc only yesterday. But I think it's a very interesting feature, and a lot of people need it.
Please tell me what needs to be fixed. I would like her to come out as soon as possible.