You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Single model package that's shared to multiple query packages #1941
I'm working on a repository where we have four sqlc-generated packages. Currently, sqlc generates the models.go file for each package; which leads to a lot of duplicated code. I was wondering if it would make sense to have an sqlc.yaml config option to create a single models package, which is then used by the query packages.
This issue is related to #835, but I think my feature request goes a bit further as it needs multiple query packages to all refer to the same models package.
What database engines need to be changed?
No response
What programming language backends need to be changed?
Activity
taylow commentedon Nov 10, 2022
Just opened a similar issue with breaking out generation paths to the config #1951 would love to see some more configurability in the generated files!
ludusrusso-rc commentedon Apr 16, 2023
@kyleconroy this feature would help me a lot, it ok for you if I try to implement it?
mpyw commentedon Jul 6, 2023
mpyw/sqlc-restruct: Post-processor for kyleconroy/sqlc
Post-processing approach
kyleconroy commentedon May 5, 2026
Fixed here #4421