Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can generate only models ? #2608

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

Hello. I want to use this soft for generate only models. How can i achieve it ?

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

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.

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

AltStyle によって変換されたページ (->オリジナル) /