The type of repsert is (MonadIO m, PersistRecordBackend record backend) => Key record -> record -> ReaderT backend m (), if I have a record where I've specified the key is one of the fields then the first parameter is redundant - it can be computed from the record itself. It'd be a nice ergonomic improvement to have a function for that case with one less parameter. It'd be almost exactly the same as upsert, with the OnlyOneUniqueKey constraint, but not taking a list of updates to perform.
The type of repsert is
(MonadIO m, PersistRecordBackend record backend) => Key record -> record -> ReaderT backend m (), if I have a record where I've specified the key is one of the fields then the first parameter is redundant - it can be computed from the record itself. It'd be a nice ergonomic improvement to have a function for that case with one less parameter. It'd be almost exactly the same asupsert, with theOnlyOneUniqueKeyconstraint, but not taking a list of updates to perform.