Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
valJ :: PersistField (Key entity) => Value (Key entity) -> SqlExpr (Value (Key entity))esqueleto Database.Esqueleto.Internal.Internal valJ is like val but for something that is already a Value. The use case it was written for was, given a Value lift the Key for that Value into the query expression in a type safe way. However, the implementation is more generic than that so we call it valJ. Its important to note that the input entity and the output entity are constrained to be the same by the type signature on the function (https://github.com/prowdsponsor/esqueleto/pull/69).
valList :: PersistField typ => [typ] -> SqlExpr (ValueList typ)esqueleto Database.Esqueleto.Internal.Internal Lift a list of constant value from Haskell-land to the query.
-
esqueleto Database.Esqueleto.Internal.Internal valkey i = val . toSqlKey (https://github.com/prowdsponsor/esqueleto/issues/9).
valueToFunctionArg :: IdentInfo -> SqlExpr (Value a) -> (Builder, [PersistValue])esqueleto Database.Esqueleto.Internal.Internal No documentation available.
valJ :: PersistField (Key entity) => Value (Key entity) -> SqlExpr (Value (Key entity))esqueleto Database.Esqueleto.Legacy valJ is like val but for something that is already a Value. The use case it was written for was, given a Value lift the Key for that Value into the query expression in a type safe way. However, the implementation is more generic than that so we call it valJ. Its important to note that the input entity and the output entity are constrained to be the same by the type signature on the function (https://github.com/prowdsponsor/esqueleto/pull/69).
valList :: PersistField typ => [typ] -> SqlExpr (ValueList typ)esqueleto Database.Esqueleto.Legacy Lift a list of constant value from Haskell-land to the query.
-
esqueleto Database.Esqueleto.Legacy valkey i = val . toSqlKey (https://github.com/prowdsponsor/esqueleto/issues/9).
values :: (ToSomeValues a, ToAliasReference a, ToAlias a) => NonEmpty a -> From aesqueleto Database.Esqueleto.PostgreSQL Allows to use `VALUES (..)` in-memory set of values in RHS of from expressions. Useful for JOIN's on known values which also can be additionally preprocessed somehow on db side with usage of inner PostgreSQL capabilities. Example of usage:
share [mkPersist sqlSettings] [persistLowerCase| User name Text age Int deriving Eq Show select $ do bound :& user <- from $ values ( (val (10 :: Int), val ("ten" :: Text)) :| [ (val 20, val "twenty") , (val 30, val "thirty") ] ) InnerJoin table User on (((bound, _boundName) :& user) -> user^.UserAge >=. bound) groupBy bound pure (bound, count @Int $ user^.UserName)
-
esqueleto Database.Esqueleto A single value (as opposed to a whole entity). You may use (^.) or (?.) to get a Value from an Entity.
-
esqueleto Database.Esqueleto No documentation available.