bitemyapp / esqueleto

New home of Esqueleto, please file issues so we can get things caught up!
BSD 3-Clause "New" or "Revised" License
370 stars 107 forks source link

Add customisation of auto-gen'ed SQL record names #331

Closed ivanbakel closed 1 year ago

ivanbakel commented 1 year ago

This adds an Aeson-inspired ability to configure how deriveEsqueletoRecord generates the SQL record type, in particular which names it generates for the record type itself and its fields.

This is because DuplicateRecordFields is a painful extension to use, and avoiding it through module structuring is also painful. A nicer solution for avoiding duplicate record fields is to simply not generate them, and allow the user to specify how record fields should be generated so they don't overlap.

Before submitting your PR, check that you've:

After submitting your PR:

parsonsmatt commented 1 year ago

released as 3.5.8.0