Skip to content

How can generate only models ? #2608

Answered by andrewmbenton
wildwind123 asked this question in Q&A
Discussion options

You must be logged in to vote

I suppose the easiest way would be to put a dummy query (like SELECT true;) in your query file and then just ignore or discard the contents of queries.sql.go.

There is no configuration option currently to have sqlc only generate models.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewmbenton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants