Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. fromSqlKey :: ToBackendKey SqlBackend record => Key record -> Int64

    esqueleto Database.Esqueleto

    No documentation available.

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

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  3. fromBaseId :: ToBaseId ent => SqlExpr (Value (Key (BaseEnt ent))) -> SqlExpr (Value (Key ent))

    esqueleto Database.Esqueleto.Experimental

    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)
    

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

    esqueleto Database.Esqueleto.Experimental

    As fromBaseId, but works on Maybe keys.

  5. fromPersistValue :: PersistField a => PersistValue -> Either Text a

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  6. fromPersistValueJSON :: FromJSON a => PersistValue -> Either Text a

    esqueleto Database.Esqueleto.Experimental

    Convenience function for getting a free PersistField instance from a type with JSON instances. The JSON parser used will accept JSON values other that object and arrays. So, if your instance serializes the data to a JSON string, this will still work. Example usage in combination with toPersistValueJSON:

    instance PersistField MyData where
    fromPersistValue = fromPersistValueJSON
    toPersistValue = toPersistValueJSON
    

  7. fromPersistValueText :: PersistValue -> Either Text Text

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  8. fromPersistValues :: PersistEntity record => [PersistValue] -> Either Text record

    esqueleto Database.Esqueleto.Experimental

    A lower-level operation to convert from database values to a Haskell record.

  9. fromSqlKey :: ToBackendKey SqlBackend record => Key record -> Int64

    esqueleto Database.Esqueleto.Experimental

    No documentation available.

  10. fromJoin :: Builder -> RawFn -> RawFn -> Maybe (SqlExpr (Value Bool)) -> RawFn

    esqueleto Database.Esqueleto.Experimental.From.Join

    No documentation available.

Page 3 of many | Previous | Next