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.
fromDBName :: IdentInfo -> DBName -> Builderesqueleto Database.Esqueleto.Internal.Internal No documentation available.
fromFinish :: PreprocessedFrom a -> SqlQuery aesqueleto Database.Esqueleto.Internal.Internal (Internal) Finish a JOIN.
-
esqueleto Database.Esqueleto.Internal.Internal (Internal) Do a JOIN.
fromPreprocess :: FromPreprocess a => SqlQuery (PreprocessedFrom a)esqueleto Database.Esqueleto.Internal.Internal No documentation available.
-
esqueleto Database.Esqueleto.Internal.Internal (Internal) Start a from query with an entity. from does two kinds of magic using fromStart, fromJoin and fromFinish:
- The simple but tedious magic of allowing tuples to be used.
- The more advanced magic of creating JOINs. The JOIN is processed from right to left. The rightmost entity of the JOIN is created with fromStart. Each JOIN step is then translated into a call to fromJoin. In the end, fromFinish is called to materialize the JOIN.
-
esqueleto Database.Esqueleto.Internal.Internal (Internal) Same as fromStart, but entity may be missing.
-
esqueleto Database.Esqueleto.Internal.Internal No documentation available.
fromBackendKey :: ToBackendKey backend record => BackendKey backend -> Key recordesqueleto Database.Esqueleto.Legacy No documentation available.
fromBaseId :: ToBaseId ent => SqlExpr (Value (Key (BaseEnt ent))) -> SqlExpr (Value (Key ent))esqueleto Database.Esqueleto.Legacy The inverse of toBaseId. Note that this is somewhat less "safe" than toBaseId. Calling toBaseId will usually mean that a foreign key constraint is present that guarantees the presence of the base ID. fromBaseId has no such guarantee. Consider the code example given in toBaseId:
Bar barNum Int Foo bar BarId fooNum Int Primary bar
instance ToBaseId Foo where type BaseEnt Foo = Bar toBaseIdWitness barId = FooKey barId
The type of toBaseId for Foo would be:toBaseId :: SqlExpr (Value FooId) -> SqlExpr (Value BarId)
The foreign key constraint on Foo means that every FooId points to a BarId in the database. However, fromBaseId will not have this:fromBaseId :: SqlExpr (Value BarId) -> SqlExpr (Value FooId)
-
esqueleto Database.Esqueleto.Legacy As fromBaseId, but works on Maybe keys.