Skip to content

How сan I to generate only sql queries without specifying any models? #456

Answered by stephenafamo
errx asked this question in Q&A
Discussion options

You must be logged in to vote

Excluding the tables will not work as you've intended because it needs the database information to correctly determine the types of any referenced columns in your queries. So if you reference an excluded table in your query, it will cause an error.

Since the query generation does not depend on model generation, I will include a way to opt out of generating code for models.
In the meantime, please ignore the generated models.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephenafamo
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