Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
persistIdField :: PersistEntity record => EntityField record (Key record)esqueleto Database.Esqueleto.Experimental A meta-operation to retrieve the Key EntityField.
setEntityId :: FieldDef -> EntityDef -> EntityDefesqueleto Database.Esqueleto.Experimental setEntityIdDef :: EntityIdDef -> EntityDef -> EntityDefesqueleto Database.Esqueleto.Experimental No documentation available.
toBaseId :: ToBaseId ent => SqlExpr (Value (Key ent)) -> SqlExpr (Value (Key (BaseEnt ent)))esqueleto Database.Esqueleto.Experimental Convert an entity's key into another entity's. This function is to be used when you change an entity's Id to be that of another entity. For example:
Bar barNum Int Foo bar BarId fooNum Int Primary bar
In this example, Bar is said to be the BaseEnt(ity), and Foo the child. To model this in Esqueleto, declare:instance ToBaseId Foo where type BaseEnt Foo = Bar toBaseIdWitness barId = FooKey barId
Now you're able to write queries such as:select $ from $ (bar `InnerJoin` foo) -> do on (toBaseId (foo ^. FooId) ==. bar ^. BarId) return (bar, foo)
Note: this function may be unsafe to use in conditions not like the one of the example above.-
esqueleto Database.Esqueleto.Experimental toBaseIdWitness :: ToBaseId ent => Key (BaseEnt ent) -> Key entesqueleto Database.Esqueleto.Experimental Convert from the key of the BaseEnt(ity) to the key of the child entity. This function is not actually called, but that it typechecks proves this operation is safe.
-
esqueleto Database.Esqueleto.Experimental.From.Join No documentation available.
parseEscapedIdentifier :: ExprParser [Char]esqueleto Database.Esqueleto.Internal.ExprParser No documentation available.
NewIdentForError :: UnexpectedCaseErroresqueleto Database.Esqueleto.Internal.Internal No documentation available.
-
esqueleto Database.Esqueleto.Internal.Internal Side data written by SqlQuery.