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.

  1. 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).

  2. valList :: PersistField typ => [typ] -> SqlExpr (ValueList typ)

    esqueleto Database.Esqueleto.Internal.Internal

    Lift a list of constant value from Haskell-land to the query.

  3. valkey :: (ToBackendKey SqlBackend entity, PersistField (Key entity)) => Int64 -> SqlExpr (Value (Key entity))

    esqueleto Database.Esqueleto.Internal.Internal

    valkey i = val . toSqlKey (https://github.com/prowdsponsor/esqueleto/issues/9).

  4. valueToFunctionArg :: IdentInfo -> SqlExpr (Value a) -> (Builder, [PersistValue])

    esqueleto Database.Esqueleto.Internal.Internal

    No documentation available.

  5. 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).

  6. valList :: PersistField typ => [typ] -> SqlExpr (ValueList typ)

    esqueleto Database.Esqueleto.Legacy

    Lift a list of constant value from Haskell-land to the query.

  7. valkey :: (ToBackendKey SqlBackend entity, PersistField (Key entity)) => Int64 -> SqlExpr (Value (Key entity))

    esqueleto Database.Esqueleto.Legacy

    valkey i = val . toSqlKey (https://github.com/prowdsponsor/esqueleto/issues/9).

  8. values :: (ToSomeValues a, ToAliasReference a, ToAlias a) => NonEmpty a -> From a

    esqueleto 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)
    

  9. newtype Value a

    esqueleto Database.Esqueleto

    A single value (as opposed to a whole entity). You may use (^.) or (?.) to get a Value from an Entity.

  10. Value :: a -> Value a

    esqueleto Database.Esqueleto

    No documentation available.

Page 2 of many | Previous | Next