Copyright | Alexander Krupenkin 2017 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Bot storage utils.
- class Platform a => Persist a where
- data Connection
- data ConnectInfo :: * = ConnectInfo {}
- runDB :: Persist a => ReaderT SqlBackend (NoLoggingT (ResourceT IO)) b -> Bot a b
- module Database.Persist
Documentation
class Platform a => Persist a where Source #
Connection info provider
persist :: Bot a Connection Source #
data Connection Source #
Database connection information
data ConnectInfo :: * #
ConnectInfo | |
|
runDB :: Persist a => ReaderT SqlBackend (NoLoggingT (ResourceT IO)) b -> Bot a b Source #
Run some staff with database connection
module Database.Persist