Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
DbConfig | |
|
Instances
Eq DbConfig Source # | |
Show DbConfig Source # | |
Generic DbConfig Source # | |
ToJSON DbConfig Source # | |
Defined in Control.Monad.Freer.Extras.Beam.Sqlite toEncoding :: DbConfig -> Encoding toJSONList :: [DbConfig] -> Value toEncodingList :: [DbConfig] -> Encoding | |
FromJSON DbConfig Source # | |
Defined in Control.Monad.Freer.Extras.Beam.Sqlite parseJSON :: Value -> Parser DbConfig parseJSONList :: Value -> Parser [DbConfig] | |
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.