How сan I to generate only sql queries without specifying any models? #456
-
Hello, currently I'm only using query generation (sqlc-like) but I can't do this without specifying at least one table with only/except.
this config doesn't work because of an error: "2025/06/10 16:56:18 no tables found in database" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.