File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 2.6.2.1
2+
3+ * Fix haddock documentation [ #725 ] ( https://github.com/yesodweb/persistent/pull/725 )
4+
15## 2.6.2
26
37* Extend the ` SomeField ` type to allow ` insertManyOnDuplicateKeyUpdate ` to conditionally copy values.
Original file line number Diff line number Diff line change @@ -1048,12 +1048,13 @@ insertOnDuplicateKeyUpdate record =
10481048-- | This type is used to determine how to update rows using MySQL's
10491049-- @INSERT ON DUPLICATE KEY UPDATE@ functionality, exposed via
10501050-- 'insertManyOnDuplicateKeyUpdate' in the library.
1051+ --
1052+ -- @since 2.6.2
10511053data SomeField record where
1054+ -- | Copy the field directly from the record.
10521055 SomeField :: EntityField record typ -> SomeField record
1053- -- ^ Copy the field directly from the record .
1056+ -- | Only copy the field if it is not equal to the provided value .
10541057 CopyUnlessEq :: PersistField typ => EntityField record typ -> typ -> SomeField record
1055- -- ^ Only copy the field if it is not equal to the provided value.
1056- -- @since 2.6.2
10571058
10581059-- | Copy the field into the database only if the value in the
10591060-- corresponding record is non-@NULL@.
Original file line number Diff line number Diff line change 11name : persistent-mysql
2- version : 2.6.2
2+ version : 2.6.2.1
33license : MIT
44license-file : LICENSE
55author : Felipe Lessa <
[email protected] >, Michael Snoyman
You can’t perform that action at this time.
0 commit comments