Safe Haskell | None |
---|
Documentation
DBContext | |
|
data ExtDBConfig Source #
ExtDBConfig | |
|
Instances
Show ExtDBConfig Source # | |
Defined in Persistence.DBConfig showsPrec :: Int -> ExtDBConfig -> ShowS show :: ExtDBConfig -> String showList :: [ExtDBConfig] -> ShowS | |
Generic ExtDBConfig Source # | |
Defined in Persistence.DBConfig type Rep ExtDBConfig :: Type -> Type from :: ExtDBConfig -> Rep ExtDBConfig x to :: Rep ExtDBConfig x -> ExtDBConfig | |
FromJSON ExtDBConfig Source # | |
Defined in Persistence.DBConfig parseJSON :: Value -> Parser ExtDBConfig parseJSONList :: Value -> Parser [ExtDBConfig] | |
type Rep ExtDBConfig Source # | |
Defined in Persistence.DBConfig type Rep ExtDBConfig = D1 ('MetaData "ExtDBConfig" "Persistence.DBConfig" "main" 'False) (C1 ('MetaCons "ExtDBConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "development") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DBConfig)) :*: (S1 ('MetaSel ('Just "test") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DBConfig)) :*: S1 ('MetaSel ('Just "production") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe DBConfig))))) |
Instances
Show DBConfig Source # | |
Generic DBConfig Source # | |
FromJSON DBConfig Source # | |
Defined in Persistence.DBConfig parseJSON :: Value -> Parser DBConfig parseJSONList :: Value -> Parser [DBConfig] | |
type Rep DBConfig Source # | |
Defined in Persistence.DBConfig type Rep DBConfig = D1 ('MetaData "DBConfig" "Persistence.DBConfig" "main" 'False) (C1 ('MetaCons "DBConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "adapter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "host") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))))) :*: ((S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "template") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "encoding") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))) :*: (S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: (S1 ('MetaSel ('Just "pool") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "needMigration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))) |
parseDatabaseConfig :: FilePath -> FilePath -> String -> Bool -> IO DBConfig Source #