Skip to content

Commit

Permalink
docs: add emit_embed_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
sapk committed Dec 28, 2023
1 parent affb779 commit 300cb3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ The `gen` mapping supports the following keys:
- `emit_all_enum_values`:
- If true, emit a function per enum type
that returns all valid enum values.
- `emit_embed_alias`:
- If true, Use alias name inside `sqlc.embed()` function instead table name. Defaults to `false`.
- `build_tags`:
- If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
- `json_tags_id_uppercase`:
Expand Down Expand Up @@ -408,6 +410,7 @@ packages:
emit_pointers_for_null_types: false
emit_enum_valid_method: false
emit_all_enum_values: false
emit_embed_alias: false
build_tags: "some_tag"
json_tags_case_style: "camel"
omit_unused_structs: false
Expand Down Expand Up @@ -463,6 +466,8 @@ Each mapping in the `packages` collection has the following keys:
- `emit_all_enum_values`:
- If true, emit a function per enum type
that returns all valid enum values.
- `emit_embed_alias`:
- If true, Use alias name inside `sqlc.embed()` function instead table name. Defaults to `false`.
- `build_tags`:
- If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
- `json_tags_case_style`:
Expand Down

0 comments on commit 300cb3c

Please sign in to comment.