packages feed

persistent-mysql 2.6.2 → 2.6.2.1

raw patch · 3 files changed

+9/−4 lines, 3 filesnew-uploader

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 2.6.2.1++* Fix haddock documentation [#725](https://github.com/yesodweb/persistent/pull/725)+ ## 2.6.2  * Extend the `SomeField` type to allow `insertManyOnDuplicateKeyUpdate` to conditionally copy values.
Database/Persist/MySQL.hs view
@@ -1048,12 +1048,13 @@ -- | This type is used to determine how to update rows using MySQL's -- @INSERT ON DUPLICATE KEY UPDATE@ functionality, exposed via -- 'insertManyOnDuplicateKeyUpdate' in the library.+--+-- @since 2.6.2 data SomeField record where+  -- | Copy the field directly from the record.   SomeField :: EntityField record typ -> SomeField record-  -- ^ Copy the field directly from the record.+  -- | Only copy the field if it is not equal to the provided value.   CopyUnlessEq :: PersistField typ => EntityField record typ -> typ -> SomeField record-  -- ^ Only copy the field if it is not equal to the provided value.-  -- @since 2.6.2  -- | Copy the field into the database only if the value in the -- corresponding record is non-@NULL@.
persistent-mysql.cabal view
@@ -1,5 +1,5 @@ name:            persistent-mysql-version:         2.6.2+version:         2.6.2.1 license:         MIT license-file:    LICENSE author:          Felipe Lessa <felipe.lessa@gmail.com>, Michael Snoyman