@@ -20,6 +20,8 @@ packages:
2020 emit_result_struct_pointers : false
2121 emit_params_struct_pointers : false
2222 emit_methods_with_db_argument : false
23+ emit_enum_valid_method : false
24+ emit_all_enum_values : false
2325 json_tags_case_style : " camel"
2426 output_db_file_name : " db.go"
2527 output_models_file_name : " models.go"
@@ -60,6 +62,12 @@ Each package document has the following keys:
6062 - If true, parameters are passed as pointers to structs. Defaults to `false`.
6163- `emit_methods_with_db_argument` :
6264 - If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
65+ - `emit_enum_valid_method` :
66+ - If true, generate a Valid method on enum types,
67+ indicating whether a string is a valid enum value.
68+ - `emit_all_enum_values` :
69+ - If true, emit a function per enum type
70+ that returns all valid enum values.
6371- `json_tags_case_style` :
6472 - ` camel` for camelCase, `pascal` for PascalCase, `snake` for snake_case or `none` to use the column name in the DB. Defaults to `none`.
6573- `output_db_file_name` :
@@ -106,7 +114,7 @@ packages: [...]
106114overrides:
107115 - db_type: "uuid"
108116 go_type:
109- - import: "a/b/v2"
117+ import: "a/b/v2"
110118 package: "b"
111119 type: "MyType"
112120 pointer: false # or true
0 commit comments