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.

  1. insertSelectCount :: forall (m :: Type -> Type) a backend . (MonadIO m, PersistEntity a, SqlBackendCanWrite backend) => SqlQuery (SqlExpr (Insertion a)) -> ReaderT backend m Int64

    esqueleto Database.Esqueleto.Internal.Internal

    Insert a PersistField for every selected value, return the count afterward

  2. makeSelect :: SqlSelect a r => IdentInfo -> Mode -> DistinctClause -> a -> (Builder, [PersistValue])

    esqueleto Database.Esqueleto.Internal.Internal

    No documentation available.

  3. rawSelectSource :: forall a r (m1 :: Type -> Type) (m2 :: Type -> Type) backend . (SqlSelect a r, MonadIO m1, MonadIO m2, SqlBackendCanRead backend) => Mode -> SqlQuery a -> ReaderT backend m1 (Acquire (ConduitT () r m2 ()))

    esqueleto Database.Esqueleto.Internal.Internal

    (Internal) Execute an esqueleto SELECT SqlQuery inside persistent's SqlPersistT monad.

  4. renderQuerySelect :: forall a r backend (m :: Type -> Type) . (SqlSelect a r, BackendCompatible SqlBackend backend, Monad m) => SqlQuery a -> ReaderT backend m (Text, [PersistValue])

    esqueleto Database.Esqueleto.Internal.Internal

    Renders a SqlQuery into a Text value along with the list of PersistValues that would be supplied to the database for ? placeholders.

  5. sqlSelectColCount :: SqlSelect a r => Proxy a -> Int

    esqueleto Database.Esqueleto.Internal.Internal

    Number of columns that will be consumed.

  6. sqlSelectCols :: SqlSelect a r => IdentInfo -> a -> (Builder, [PersistValue])

    esqueleto Database.Esqueleto.Internal.Internal

    Creates the variable part of the SELECT query and returns the list of PersistValues that will be given to rawQuery.

  7. sqlSelectProcessRow :: SqlSelect a r => [PersistValue] -> Either Text r

    esqueleto Database.Esqueleto.Internal.Internal

    Transform a row of the result into the data type.

  8. subList_select :: PersistField a => SqlQuery (SqlExpr (Value a)) -> SqlExpr (ValueList a)

    esqueleto Database.Esqueleto.Internal.Internal

    Execute a subquery SELECT in an SqlExpression. Returns a list of values.

  9. subSelect :: (PersistField a, NullableFieldProjection a a') => SqlQuery (SqlExpr (Value a)) -> SqlExpr (Value (Maybe a'))

    esqueleto Database.Esqueleto.Internal.Internal

    Execute a subquery SELECT in a SqlExpr. The query passed to this function will only return a single result - it has a LIMIT 1 passed in to the query to make it safe, and the return type is Maybe to indicate that the subquery might result in 0 rows. If you find yourself writing joinV . subSelect, then consider using subSelectMaybe. If you're performing a countRows, then you can use subSelectCount which is safe. If you know that the subquery will always return exactly one row (eg a foreign key constraint guarantees that you'll get exactly one row), then consider subSelectUnsafe, along with a comment explaining why it is safe.

  10. subSelectCount :: (Num a, PersistField a) => SqlQuery ignored -> SqlExpr (Value a)

    esqueleto Database.Esqueleto.Internal.Internal

    Performs a COUNT of the given query in a subSelect manner. This is always guaranteed to return a result value, and is completely safe.

Page 6 of many | Previous | Next