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 # | |
FromJSON DbConfig Source # | |
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-LXgx2kLJeQTLxOMFH7LYd8" '
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.