Skip to content

Commit bf903c2

Browse files
committed
resolve conversation
1 parent ae7a7bd commit bf903c2

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/.idea/
22
__pycache__
3-
.DS_Store
3+
.DS_Store

internal/codegen/golang/field.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@ func toCamelInitCase(name string, initUpper bool) string {
7979
}
8080

8181
func toLowerCase(str string) string {
82-
var b strings.Builder
83-
84-
b.WriteString(strings.ToLower(string(str[0])))
85-
b.WriteString(str[1:])
82+
if str == "" {
83+
return ""
84+
}
8685

87-
return b.String()
86+
return strings.ToLower(str[:1]) + str[1:]
8887
}

internal/endtoend/testdata/process_plugin_sqlc_gen_json/gen/codegen.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
"plugin": "jsonb",
1616
"options": "eyJmaWxlbmFtZSI6ImNvZGVnZW4uanNvbiIsImluZGVudCI6IiAgIn0="
1717
},
18-
"python": null,
19-
"kotlin": null,
2018
"go": {
2119
"emit_interface": false,
2220
"emit_json_tags": false,
@@ -38,7 +36,9 @@
3836
"output_files_suffix": "",
3937
"emit_enum_valid_method": false,
4038
"emit_all_enum_values": false,
41-
"inflection_exclude_table_names": []
39+
"inflection_exclude_table_names": [],
40+
"emit_pointers_for_null_types": false,
41+
"query_parameter_limit": 1
4242
},
4343
"json": {
4444
"out": "",

protos/plugin/codegen.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,4 @@ message CodeGenRequest
193193
message CodeGenResponse
194194
{
195195
repeated File files = 1 [json_name="files"];
196-
}
196+
}

0 commit comments

Comments
 (0)