Skip to content

Commit 8542b7d

Browse files
docs: add docs for the feature added in #998 (#1040)
1 parent ad041d0 commit 8542b7d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/reference/config.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ packages:
1717
emit_empty_slices: false
1818
emit_json_tags: true
1919
json_tags_case_style: "camel"
20+
output_db_file_name: "db.go"
21+
output_models_file_name: "models.go"
22+
output_querier_file_name: "querier.go"
2023
```
2124
2225
Each package document has the following keys:
@@ -44,6 +47,14 @@ Each package document has the following keys:
4447
- If true, add JSON tags to generated structs. Defaults to `false`.
4548
- `json_tags_case_style`:
4649
- `camel` for camelCase, `pascal` for PascalCase, `snake` for snake_case or `none` to use the column name in the DB. Defaults to `none`.
50+
- `output_db_file_name`:
51+
- Customize the name of the db file. Defaults to `db.go`.
52+
- `output_models_file_name`:
53+
- Customize the name of the models file. Defaults to `models.go`.
54+
- `output_querier_file_name`:
55+
- Customize the name of the querier file. Defaults to `querier.go`.
56+
- `output_files_suffix`:
57+
- If specified the suffix will be added to the name of the generated files.
4758

4859
## Type Overrides
4960

0 commit comments

Comments
 (0)