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.
-
esqueleto Database.Esqueleto.Internal.Internal Insert a PersistField for every selected value, return the count afterward
makeSelect :: SqlSelect a r => IdentInfo -> Mode -> DistinctClause -> a -> (Builder, [PersistValue])esqueleto Database.Esqueleto.Internal.Internal No documentation available.
-
esqueleto Database.Esqueleto.Internal.Internal (Internal) Execute an esqueleto SELECT SqlQuery inside persistent's SqlPersistT monad.
-
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.
sqlSelectColCount :: SqlSelect a r => Proxy a -> Intesqueleto Database.Esqueleto.Internal.Internal Number of columns that will be consumed.
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.
sqlSelectProcessRow :: SqlSelect a r => [PersistValue] -> Either Text resqueleto Database.Esqueleto.Internal.Internal Transform a row of the result into the data type.
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.
-
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.
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.