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. fromDBName :: IdentInfo -> DBName -> Builder

    esqueleto Database.Esqueleto.Internal.Internal

    No documentation available.

  2. fromFinish :: PreprocessedFrom a -> SqlQuery a

    esqueleto Database.Esqueleto.Internal.Internal

    (Internal) Finish a JOIN.

  3. fromJoin :: IsJoinKind join => PreprocessedFrom a -> PreprocessedFrom b -> SqlQuery (PreprocessedFrom (join a b))

    esqueleto Database.Esqueleto.Internal.Internal

    (Internal) Do a JOIN.

  4. fromPreprocess :: FromPreprocess a => SqlQuery (PreprocessedFrom a)

    esqueleto Database.Esqueleto.Internal.Internal

    No documentation available.

  5. fromStart :: (PersistEntity a, BackendCompatible SqlBackend (PersistEntityBackend a)) => SqlQuery (PreprocessedFrom (SqlExpr (Entity a)))

    esqueleto Database.Esqueleto.Internal.Internal

    (Internal) Start a from query with an entity. from does two kinds of magic using fromStart, fromJoin and fromFinish:

    1. The simple but tedious magic of allowing tuples to be used.
    2. 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.

  6. fromStartMaybe :: (PersistEntity a, BackendCompatible SqlBackend (PersistEntityBackend a)) => SqlQuery (PreprocessedFrom (SqlExpr (Maybe (Entity a))))

    esqueleto Database.Esqueleto.Internal.Internal

    (Internal) Same as fromStart, but entity may be missing.

  7. from_ :: From a => SqlQuery a

    esqueleto Database.Esqueleto.Internal.Internal

    No documentation available.

  8. fromBackendKey :: ToBackendKey backend record => BackendKey backend -> Key record

    esqueleto Database.Esqueleto.Legacy

    No documentation available.

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

  10. fromBaseIdMaybe :: ToBaseId ent => SqlExpr (Value (Maybe (Key (BaseEnt ent)))) -> SqlExpr (Value (Maybe (Key ent)))

    esqueleto Database.Esqueleto.Legacy

    As fromBaseId, but works on Maybe keys.

Page 7 of many | Previous | Next