From 834e25ce9bbff74d24196763850293376bf7d9fd Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 27 Jun 2023 13:57:13 -0700 Subject: [PATCH 1/2] docs: Update query_parameter_limit documentation --- docs/reference/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/config.md b/docs/reference/config.md index 864cf407e0..79e57842ec 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -126,7 +126,7 @@ The `gen` mapping supports the following keys: - `output_files_suffix`: - If specified the suffix will be added to the name of the generated files. - `query_parameter_limit`: - - 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`. + - The number of positional arguments that will be generated for Go functions. To always emit a parameter struct, set this to `0`. Defaults to `1`. `rename`: - Customize the name of generated struct fields. Explained in detail on the `Renaming fields` section. - `overrides`: From 154fe3a1c20b2118fbd2c0f4129f959321240be1 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 27 Jun 2023 13:57:56 -0700 Subject: [PATCH 2/2] docs: Add space in front of config option --- docs/reference/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/config.md b/docs/reference/config.md index 79e57842ec..5218af896e 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -127,7 +127,7 @@ The `gen` mapping supports the following keys: - If specified the suffix will be added to the name of the generated files. - `query_parameter_limit`: - The number of positional arguments that will be generated for Go functions. To always emit a parameter struct, set this to `0`. Defaults to `1`. -`rename`: +- `rename`: - Customize the name of generated struct fields. Explained in detail on the `Renaming fields` section. - `overrides`: - 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.