Skip to content

Commit

Permalink
build: Fix conflicts from pointer configuration (sqlc-dev#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy authored and akutschera committed Nov 10, 2022
1 parent 5b5d381 commit b609567
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 31 deletions.
3 changes: 2 additions & 1 deletion internal/endtoend/testdata/codegen_json/gen/codegen.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"output_files_suffix": "",
"emit_enum_valid_method": false,
"emit_all_enum_values": false,
"inflection_exclude_table_names": []
"inflection_exclude_table_names": [],
"emit_pointers_for_null_types": false
},
"json": {
"out": "gen",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"output_files_suffix": "",
"emit_enum_valid_method": false,
"emit_all_enum_values": false,
"inflection_exclude_table_names": []
"inflection_exclude_table_names": [],
"emit_pointers_for_null_types": false
},
"json": {
"out": "",
Expand Down
107 changes: 97 additions & 10 deletions internal/plugin/codegen.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 37 additions & 14 deletions internal/plugin/codegen_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/plugin/codegen.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ message GoCode
bool emit_result_struct_pointers = 8;
bool emit_params_struct_pointers = 9;
bool emit_methods_with_db_argument = 10;
bool emit_pointers_for_null_types = 19;
string json_tags_case_style = 11;
string package = 12;
string out = 13;
Expand All @@ -92,6 +91,7 @@ message GoCode
bool emit_enum_valid_method = 19;
bool emit_all_enum_values = 20;
repeated string inflection_exclude_table_names = 21;
bool emit_pointers_for_null_types = 22;
}

message JSONCode
Expand Down

0 comments on commit b609567

Please sign in to comment.