Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
esqueleto Database.Esqueleto.Internal.Internal (Internal) Same as fromStart, but entity may be missing.
-
esqueleto Database.Esqueleto.Internal.Internal Execute a subquery SELECT in a SqlExpr. This function is a shorthand for the common joinV . subSelect idiom, where you are calling subSelect on an expression that would be Maybe already. As an example, you would use this function when calling sum_ or max_, which have Maybe in the result type (for a 0 row query).
-
esqueleto Database.Esqueleto.Internal.Internal -
esqueleto Database.Esqueleto.Legacy No documentation available.
-
esqueleto Database.Esqueleto.Legacy The Maybe keyword goes after the type. This indicates that the column is nullable, and the generated Haskell code will have a Maybe type for it. Example:
User name Text Maybe
-
esqueleto Database.Esqueleto.Legacy As fromBaseId, but works on Maybe keys.
isFieldMaybe :: FieldDef -> Boolesqueleto Database.Esqueleto.Legacy Check if the field is `Maybe a`
-
esqueleto Database.Esqueleto.Legacy Execute a subquery SELECT in a SqlExpr. This function is a shorthand for the common joinV . subSelect idiom, where you are calling subSelect on an expression that would be Maybe already. As an example, you would use this function when calling sum_ or max_, which have Maybe in the result type (for a 0 row query).
-
esqueleto Database.Esqueleto.Legacy -
esqueleto Database.Esqueleto.PostgreSQL Like upsert, but permits an empty list of updates to be performed. If no updates are provided and the record already was present in the database, then this will return Nothing. If you want to fetch the record out of the database, you can write:
mresult <- upsertMaybe record [] case mresult of Nothing -> getBy (onlyUniqueP record) Just res -> pure (Just res)