| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Control.Monad.Freer.Extras.Beam.Sqlite
Synopsis
- data DbConfig = DbConfig {- dbConfigFile :: Text
- dbConfigPoolSize :: Int
 
- defaultDbConfig :: DbConfig
- runBeam :: forall effs. (LastMember IO effs, Member (Reader (Pool Connection)) effs) => Trace IO BeamLog -> SqliteM ~> Eff effs
Documentation
Constructors
| DbConfig | |
| Fields 
 | |
Instances
| Eq DbConfig Source # | |
| Show DbConfig Source # | |
| Generic DbConfig Source # | |
| ToJSON DbConfig Source # | |
| Defined in Control.Monad.Freer.Extras.Beam.Sqlite Methods toEncoding :: DbConfig -> Encoding toJSONList :: [DbConfig] -> Value toEncodingList :: [DbConfig] -> Encoding | |
| FromJSON DbConfig Source # | |
| Defined in Control.Monad.Freer.Extras.Beam.Sqlite | |
| Default DbConfig Source # | |
| Defined in Control.Monad.Freer.Extras.Beam.Sqlite | |
| type Rep DbConfig Source # | |
| Defined in Control.Monad.Freer.Extras.Beam.Sqlite type Rep DbConfig = D1 ('MetaData "DbConfig" "Control.Monad.Freer.Extras.Beam.Sqlite" "freer-extras-1.2.0.0-1q4AUo79Td5ISTeTXorMWT" 'False) (C1 ('MetaCons "DbConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbConfigFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dbConfigPoolSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) | |
defaultDbConfig :: DbConfig Source #
Default database config uses an in-memory sqlite database that is shared between all threads in the process.