Hoogle Search
Within LTS Haskell 22.22 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
deleteCount :: (MonadIO m, SqlBackendCanWrite backend) => SqlQuery () -> ReaderT backend m Int64esqueleto Database.Esqueleto.Experimental Same as delete, but returns the number of rows affected.
-
esqueleto Database.Esqueleto.Experimental Synonym for delete that does not clash with esqueleto's delete.
-
esqueleto Database.Esqueleto.Experimental Delete all records matching the given criterion.
deleteCount :: (MonadIO m, SqlBackendCanWrite backend) => SqlQuery () -> ReaderT backend m Int64esqueleto Database.Esqueleto.Internal.Internal Same as delete, but returns the number of rows affected.
-
esqueleto Database.Esqueleto.Internal.Internal Synonym for delete that does not clash with esqueleto's delete.
-
esqueleto Database.Esqueleto.Legacy Delete a specific record by unique key. Does nothing if no record matches.
Example usage
With schema-1 and dataset-1,deleteBySpjName :: MonadIO m => ReaderT SqlBackend m () deleteBySpjName = deleteBy UniqueUserName "SPJ"
The above query when applied on dataset-1, will produce this:+-----+------+-----+ |id |name |age | +-----+------+-----+ |2 |Simon |41 | +-----+------+-----+
deleteCount :: (MonadIO m, SqlBackendCanWrite backend) => SqlQuery () -> ReaderT backend m Int64esqueleto Database.Esqueleto.Legacy Same as delete, but returns the number of rows affected.
-
esqueleto Database.Esqueleto.Legacy Synonym for delete that does not clash with esqueleto's delete.
-
esqueleto Database.Esqueleto.Legacy Delete all records matching the given criterion.
fcOnDelete :: FieldCascade -> !Maybe CascadeActionesqueleto Database.Esqueleto No documentation available.