Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DBAccess m = DBAccess {
- runDb :: forall a. m a -> IO a
- selectFeatures :: m [Entity Feature]
- selectActorsByFeatureId :: FeatureId -> m [Entity Actor]
- findFeature :: FeatureName -> m (Maybe (Entity Feature))
- insertActor :: Actor -> m (Key Actor)
- deleteActor :: FeatureId -> ActorId -> m ()
- insertFeature :: Feature -> m (Key Feature)
- updateFeature :: FeatureId -> Feature -> m ()
- countActors :: m Int
- countFeatures :: m Int
- db :: ConnectionPool -> DBAccess (SqlPersistT IO)
Documentation
Database query interface
DBAccess | |
|
db :: ConnectionPool -> DBAccess (SqlPersistT IO) Source #
Creates a DBAccess backed by a SqlPersistT context