don't use aliases
This commit is contained in:
parent
68c180b8bb
commit
592a017e6c
@ -971,16 +971,22 @@ deleteCount = rawEsqueleto DELETE
|
|||||||
-- 'where_' $ isNothing (p '^.' PersonAge)
|
-- 'where_' $ isNothing (p '^.' PersonAge)
|
||||||
-- @
|
-- @
|
||||||
update :: ( MonadIO m
|
update :: ( MonadIO m
|
||||||
, SqlEntity val )
|
, SqlEntity val
|
||||||
|
, BackendCompatible SqlBackend backend
|
||||||
|
, PersistQueryWrite backend
|
||||||
|
, PersistUniqueWrite backend)
|
||||||
=> (SqlExpr (Entity val) -> SqlQuery ())
|
=> (SqlExpr (Entity val) -> SqlQuery ())
|
||||||
-> SqlWriteT m ()
|
-> R.ReaderT backend m ()
|
||||||
update = void . updateCount
|
update = void . updateCount
|
||||||
|
|
||||||
-- | Same as 'update', but returns the number of rows affected.
|
-- | Same as 'update', but returns the number of rows affected.
|
||||||
updateCount :: ( MonadIO m
|
updateCount :: ( MonadIO m
|
||||||
, SqlEntity val )
|
, SqlEntity val
|
||||||
|
, BackendCompatible SqlBackend backend
|
||||||
|
, PersistQueryWrite backend
|
||||||
|
, PersistUniqueWrite backend)
|
||||||
=> (SqlExpr (Entity val) -> SqlQuery ())
|
=> (SqlExpr (Entity val) -> SqlQuery ())
|
||||||
-> SqlWriteT m Int64
|
-> R.ReaderT backend m Int64
|
||||||
updateCount = rawEsqueleto UPDATE . from
|
updateCount = rawEsqueleto UPDATE . from
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user