@@ -163,6 +163,8 @@ The `gen` mapping supports the following keys:
163163- `emit_all_enum_values` :
164164 - If true, emit a function per enum type
165165 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`.
166168- `build_tags` :
167169 - If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
168170- `json_tags_id_uppercase` :
@@ -408,6 +410,7 @@ packages:
408410 emit_pointers_for_null_types: false
409411 emit_enum_valid_method: false
410412 emit_all_enum_values: false
413+ emit_embed_alias: false
411414 build_tags: "some_tag"
412415 json_tags_case_style: "camel"
413416 omit_unused_structs: false
@@ -463,6 +466,8 @@ Each mapping in the `packages` collection has the following keys:
463466- `emit_all_enum_values` :
464467 - If true, emit a function per enum type
465468 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`.
466471- `build_tags` :
467472 - If set, add a `//go:build <build_tags>` directive at the beginning of each generated Go file.
468473- `json_tags_case_style` :
0 commit comments