Wulf / dsync

Generate rust structs & query functions from diesel schema files
Other
70 stars 13 forks source link

fix: incomplete generated code for pk #90

Closed jjangga0214 closed 1 year ago

jjangga0214 commented 1 year ago
스크린샷 2023-10-16 오후 12 58 41

As we can see, part of using primary key is missing.

INFO

jjangga0214 commented 1 year ago

Never mind. I missed specifying pk from diesel::table!

But I still think it'd be good to print out "[ERROR] You're missing primary key!" from CLI output.

hasezoey commented 1 year ago

could you provide a example diesel table that produces this problem?