Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
persistent-redis Database.Persist.Redis Same as get, but for a non-null (not Maybe) foreign key. Unsafe unless your database is enforcing that the foreign key is valid.
Example usage
With schema-1 and dataset-1,getJustSpj :: MonadIO m => ReaderT SqlBackend m User getJustSpj = getJust spjId
spj <- getJust spjId
The above query when applied on dataset-1, will get this record:+----+------+-----+ | id | name | age | +----+------+-----+ | 1 | SPJ | 40 | +----+------+-----+
getJustUnknown :: MonadIO m => ReaderT SqlBackend m User getJustUnknown = getJust unknownId
mrx <- getJustUnknown This just throws an error. -
persistent-redis Database.Persist.Redis Same as getJust, but returns an Entity instead of just the record.
Example usage
With schema-1 and dataset-1,getJustEntitySpj :: MonadIO m => ReaderT SqlBackend m (Entity User) getJustEntitySpj = getJustEntity spjId
spjEnt <- getJustEntitySpj
The above query when applied on dataset-1, will get this entity:+----+------+-----+ | id | name | age | +----+------+-----+ | 1 | SPJ | 40 | +----+------+-----+
-
persistent-redis Database.Persist.Redis Get many records by their respective identifiers, if available.
Example usage
With schema-1 and dataset-1:getUsers :: MonadIO m => ReaderT SqlBackend m (Map (Key User) User) getUsers = getMany allkeys
musers <- getUsers
The above query when applied on dataset-1, will get these records:+----+-------+-----+ | id | name | age | +----+-------+-----+ | 1 | SPJ | 40 | +----+-------+-----+ | 2 | Simon | 41 | +----+-------+-----+
getPersistMap :: PersistValue -> Either Text [(Text, PersistValue)]persistent-redis Database.Persist.Redis FIXME Add documentation to that.
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getBy
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getByValue
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getEntity
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getFieldName
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getJust
-
persistent-mtl Database.Persist.Monad.SqlQueryRep Constructor corresponding to getJustEntity