Wulf / dsync

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

Refactor `GenerationConfig` to be able to use `Default` #128

Closed hasezoey closed 9 months ago

hasezoey commented 9 months ago

This PR refactors GenerationConfig to support Default where possible by separating out required and optional fields and supporting a top-level builder. (as suggested as point 3 and hybrid-approach of point 3)

in addition this PR also:

fixes #92

hasezoey commented 9 months ago

refactored for #126, i had to use the double-new approach, because one of the required options is behind a flag and it would be weird to have to specify a option that has no effect (if feature is off)

EDIT: also added a changelog entry