| Copyright | Alexander Krupenkin 2017 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Bot.Persist
Description
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
Minimal complete definition
Methods
persist :: Bot a Connection Source #
data Connection Source #
Database connection information
Constructors
| Postgresql ConnectionString | |
| Sqlite Text | |
| MySQL ConnectInfo |
Instances
data ConnectInfo :: * #
Constructors
| ConnectInfo | |
Fields
| |
Instances
runDB :: Persist a => ReaderT SqlBackend (NoLoggingT (ResourceT IO)) b -> Bot a b Source #
Run some staff with database connection
module Database.Persist