You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
# README
1
2
## Usage
2
3
3
4
```yaml
@@ -20,3 +21,13 @@ sql:
20
21
emit_generators: true
21
22
emit_async: false
22
23
```
24
+
25
+
## Multiple packages
26
+
If you have have a mono-repository setup you may want to split the output of queries and models. You can achieve this by using the `output_models_file_name`
27
+
and `output_querier_file` fields. If `output_models_file_name` is set to `null` for it will not output the `models.py` file. Setting `output_querier_file` to false will prevent outputting any query files. Combining these you can set one codegen to only output models while the other codegen outputs only queries. Make sure the `package` configuration is set equally so the query files import correctly the models.
28
+
29
+
SQLC needs at least one query, so you may need to add a unused query like the following in your schema and reuse the `schema` as `queries`.
0 commit comments