@@ -163,6 +163,8 @@ The `gen` mapping supports the following keys:
163
163
- `emit_all_enum_values` :
164
164
- If true, emit a function per enum type
165
165
that returns all valid enum values.
166
+ - `emit_embed_alias` :
167
+ - If true, Use alias name inside `sqlc.embed()` function instead table name. Defaults to `false`.
166
168
- `build_tags` :
167
169
- If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
168
170
- `json_tags_id_uppercase` :
@@ -408,6 +410,7 @@ packages:
408
410
emit_pointers_for_null_types: false
409
411
emit_enum_valid_method: false
410
412
emit_all_enum_values: false
413
+ emit_embed_alias: false
411
414
build_tags: "some_tag"
412
415
json_tags_case_style: "camel"
413
416
omit_unused_structs: false
@@ -463,6 +466,8 @@ Each mapping in the `packages` collection has the following keys:
463
466
- `emit_all_enum_values` :
464
467
- If true, emit a function per enum type
465
468
that returns all valid enum values.
469
+ - `emit_embed_alias` :
470
+ - If true, Use alias name inside `sqlc.embed()` function instead table name. Defaults to `false`.
466
471
- `build_tags` :
467
472
- If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
468
473
- `json_tags_case_style` :
0 commit comments