packages feed

persistent 2.14.0.3 → 2.14.1.0

raw patch · 5 files changed

+13/−4 lines, 5 filesdep ~aesondep ~template-haskell

Dependency ranges changed: aeson, template-haskell

Files

ChangeLog.md view
@@ -1,5 +1,13 @@ # Changelog for persistent +## 2.14.1.0++* [#1418](https://github.com/yesodweb/persistent/pull/1418/)+    * Re-export `SafeToInsert` from `Database.Persist.Class`, which should+      re-export it through `Database.Persist`, `Database.Persist.Sql`, etc.+* [#1409](https://github.com/yesodweb/persistent/pull/1409)+    * Fix incorrect reference to rawSql in documentation.+ ## 2.14.0.3  * [#1411](https://github.com/yesodweb/persistent/pull/1411)
Database/Persist/Class.hs view
@@ -52,6 +52,7 @@     , getEntity     , belongsTo     , belongsToJust+    , SafeToInsert     , insertEntity     , insertRecord 
Database/Persist/Class/PersistEntity.hs view
@@ -301,8 +301,8 @@ -- migration code -- @persistent@ will expect the column to be in -- the middle, but your DBMS will put it as the last column). -- So, instead of using a query like the one above, you may use--- 'Database.Persist.GenericSql.rawSql' (from the--- "Database.Persist.GenericSql" module) with its /entity+-- 'Database.Persist.Sql.rawSql' (from the+-- "Database.Persist.Sql" module) with its /entity -- selection placeholder/ (a double question mark @??@).  Using -- @rawSql@ the query above must be written as @SELECT ??  WHERE -- ..@.  Then @rawSql@ will replace @??@ with the list of all
Database/Persist/Class/PersistUnique.hs view
@@ -150,7 +150,7 @@     -- First, we try to explain 'upsert' using <#schema-persist-unique-1 schema-1> and <#dataset-persist-unique-1 dataset-1>.     --     -- > upsertSpj :: MonadIO m => [Update User] -> ReaderT SqlBackend m (Maybe (Entity User))-    -- > upsertSpj updates = upsert (User "SPJ" 999) upadtes+    -- > upsertSpj updates = upsert (User "SPJ" 999) updates     --     -- > mSpjEnt <- upsertSpj [UserAge +=. 15]     --
persistent.cabal view
@@ -1,5 +1,5 @@ name:            persistent-version:         2.14.0.3+version:         2.14.1.0 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>