sqlc
sqlc copied to clipboard
Can't generate only schema without queries
What do you want to change?
Context:
- Techstack I'm used:
- go version go1.21.6 linux/amd64
- kjconroy/sqlc:latest image
- config yaml file: v2
- I want to replace generated queries generated and query.go file
- I'd do somethings like:
- remove field queries => I got a error: error parsing queries: no queries contained in paths
- write query but not using it => work, but exists query.go file generated? this way is so stupid LOL
My expectation:
- If ignore field queries in yaml file, sqlc'll only generate schema to struct
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
Hello I was looking for something similar as well (just generate models.go). I can help with the implementation if needed!
+1
Or if the .sql file with queries is empty, just ignore it without any explicit instructions in the .yaml file.