More persistent2 updates

This commit is contained in:
Michael Snoyman 2014-08-27 11:27:36 +03:00
parent deceb9f242
commit 30964d950d
3 changed files with 3 additions and 15 deletions

View File

@ -79,9 +79,6 @@ module Database.Esqueleto
, (<#)
, (<&>)
-- * Helpers
, valkey
-- * Re-exports
-- $reexports
, deleteKey
@ -371,16 +368,6 @@ import qualified Database.Persist
----------------------------------------------------------------------
-- | @valkey i = val (Key (PersistInt64 i))@
-- (<https://github.com/meteficha/esqueleto/issues/9>).
valkey :: Esqueleto query expr backend =>
Int64 -> expr (Value (Key entity))
valkey = val . Key . PersistInt64
----------------------------------------------------------------------
-- | Synonym for 'Database.Persist.Store.delete' that does not
-- clash with @esqueleto@'s 'delete'.
deleteKey :: ( PersistStore (PersistEntityBackend val)

View File

@ -9,4 +9,5 @@ import Database.Persist.Sql hiding
, Update(..), delete, deleteWhereCount, updateWhereCount, selectList
, selectKeysList, deleteCascadeWhere, (=.), (+=.), (-=.), (*=.), (/=.)
, (==.), (!=.), (<.), (>.), (<=.), (>=.), (<-.), (/<-.), (||.)
, listToJSON, mapToJSON, getPersistMap, limitOffsetOrder, selectSource )
, listToJSON, mapToJSON, getPersistMap, limitOffsetOrder, selectSource
, update )

View File

@ -113,7 +113,7 @@ instance Monoid SideData where
-- | A part of a @FROM@ clause.
data FromClause =
FromStart Ident (EntityDef SqlType)
FromStart Ident EntityDef
| FromJoin FromClause JoinKind FromClause (Maybe (SqlExpr (Value Bool)))
| OnClause (SqlExpr (Value Bool))