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: docs/reference/config.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,9 @@ The `gen` mapping supports the following keys:
121
121
- Customize the name of the querier file. Defaults to `querier.go`.
122
122
- `output_files_suffix`:
123
123
- If specified the suffix will be added to the name of the generated files.
124
-
- `rename`:
124
+
- `query_parameter_limit`:
125
+
- Positional arguments that will be generated in Go functions (>= `1` or `-1`). To always emit a parameter struct, you would need to set it to `-1`. `0` is invalid. Defaults to `1`.
126
+
`rename`:
125
127
- Customize the name of generated struct fields. Explained in detail on the `Renaming fields` section.
126
128
- `overrides`:
127
129
- It is a collection of definitions that dictates which types are used to map a database types. Explained in detail on the `Type overriding` section.
@@ -403,6 +405,8 @@ Each mapping in the `packages` collection has the following keys:
403
405
- Customize the name of the querier file. Defaults to `querier.go`.
404
406
- `output_files_suffix`:
405
407
- If specified the suffix will be added to the name of the generated files.
408
+
- `query_parameter_limit`:
409
+
- Positional arguments that will be generated in Go functions (`>= 0`). To always emit a parameter struct, you would need to set it to `0`. Defaults to `1`.
0 commit comments