Skip to content

Commit

Permalink
The documentation has been corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
MWT-proger committed May 15, 2024
1 parent e0ac1d0 commit bb16495
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ The `gen` mapping supports the following keys:

- `package`:
- The package name to use for the generated code. Defaults to `out` basename.
- `package_models`:
- The package name to use for the generated code models. Defaults to `out` basename.
- `package_models_path_import`:
- The name of the model import path to be used when specifying imports in other created packages. By default, no, because all files are created in one package. For example, `github.com/path/internal `, as a result, the import will look like `github.com/path/internal/models `. The parameter should be used together with `package_models`.
- `out`:
- Output directory for generated code.
- `sql_package`:
Expand Down Expand Up @@ -183,6 +187,8 @@ The `gen` mapping supports the following keys:
- 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_queries_path_name`:
- Customize the path to the generated queries. Defaults to ` `. At this point, you need to specify the same path as to the `db.go`.
- `output_copyfrom_file_name`:
- Customize the name of the copyfrom file. Defaults to `copyfrom.go`.
- `output_files_suffix`:
Expand Down

0 comments on commit bb16495

Please sign in to comment.