Skip to content
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

generate files in 3 different packages #1976

Closed
MS-24 opened this issue Dec 1, 2022 · 1 comment
Closed

generate files in 3 different packages #1976

MS-24 opened this issue Dec 1, 2022 · 1 comment

Comments

@MS-24
Copy link

MS-24 commented Dec 1, 2022

This might be similar to #1951

I would need structure my project to separate db, model and service
But sqlc generates 3 files in a single output path under same package .
Is there a way I could configure 3 different package names for 3 different files.
Something similar to out file name
"
output_db_file_name: "db.go"
output_models_file_name: "models.go"
output_querier_file_name: "querier.go"
"
Can we have like below ?
db_package: "db"
models_package: "models"
service_package: "service"

Thanks!!

@kyleconroy
Copy link
Collaborator

Closing as a duplicate of #1941

@kyleconroy kyleconroy closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants