From 70cbc8db22821bbaa0a4d6ff87417681b55e42f8 Mon Sep 17 00:00:00 2001 From: Alessio Dionisi Date: Wed, 2 Jun 2021 18:26:02 +0200 Subject: [PATCH] docs: add docs for the feature added in #998 --- docs/reference/config.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/reference/config.md b/docs/reference/config.md index 55e4fa080b..85bd69d146 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -17,6 +17,9 @@ packages: emit_empty_slices: false emit_json_tags: true json_tags_case_style: "camel" + output_db_file_name: "db.go" + output_models_file_name: "models.go" + output_querier_file_name: "querier.go" ``` Each package document has the following keys: @@ -44,6 +47,14 @@ Each package document has the following keys: - If true, add JSON tags to generated structs. Defaults to `false`. - `json_tags_case_style`: - `camel` for camelCase, `pascal` for PascalCase, `snake` for snake_case or `none` to use the column name in the DB. Defaults to `none`. +- `output_db_file_name`: + - Customize the name of the db file. Defaults to `db.go`. +- `output_models_file_name`: + - Customize the name of the models file. Defaults to `models.go`. +- `output_querier_file_name`: + - Customize the name of the querier file. Defaults to `querier.go`. +- `output_files_suffix`: + - If specified the suffix will be added to the name of the generated files. ## Type Overrides