| Safe Haskell | None |
|---|
Persistence.DBConfig
Documentation
Constructors
| DBContext | |
Fields
| |
Instances
data ExtDBConfig Source #
Constructors
| ExtDBConfig | |
Fields
| |
Instances
| Show ExtDBConfig Source # | |
Defined in Persistence.DBConfig Methods showsPrec :: Int -> ExtDBConfig -> ShowS show :: ExtDBConfig -> String showList :: [ExtDBConfig] -> ShowS | |
| Generic ExtDBConfig Source # | |
Defined in Persistence.DBConfig Associated Types type Rep ExtDBConfig :: Type -> Type | |
| FromJSON ExtDBConfig Source # | |
Defined in Persistence.DBConfig | |
| 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))))) | |
Constructors
| DBConfig | |
Instances
| Show DBConfig Source # | |
| Generic DBConfig Source # | |
| FromJSON DBConfig Source # | |
Defined in Persistence.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 #