Skip to content

Commit 6d0051b

Browse files
add docs for the feature added in #1053 (#1061)
1 parent 0707177 commit 6d0051b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/reference/config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages:
1515
emit_interface: false
1616
emit_exact_table_names: false
1717
emit_empty_slices: false
18+
emit_exported_queries: false
1819
emit_json_tags: true
1920
json_tags_case_style: "camel"
2021
output_db_file_name: "db.go"
@@ -43,6 +44,8 @@ Each package document has the following keys:
4344
- If true, struct names will mirror table names. Otherwise, sqlc attempts to singularize plural table names. Defaults to `false`.
4445
- `emit_empty_slices`:
4546
- If true, slices returned by `:many` queries will be empty instead of `nil`. Defaults to `false`.
47+
- `emit_exported_queries`:
48+
- If true, autogenerated SQL statement can be exported to be accessed by another package.
4649
- `emit_json_tags`:
4750
- If true, add JSON tags to generated structs. Defaults to `false`.
4851
- `json_tags_case_style`:

0 commit comments

Comments
 (0)