Hets - the Heterogeneous Tool Set
Safe HaskellNone

Persistence.DBConfig

Documentation

data DBContext Source #

Constructors

DBContext 

Fields

Instances

Instances details
Eq DBContext Source # 
Instance details

Defined in Persistence.DBConfig

Methods

(==) :: DBContext -> DBContext -> Bool

(/=) :: DBContext -> DBContext -> Bool

Show DBContext Source # 
Instance details

Defined in Persistence.DBConfig

Methods

showsPrec :: Int -> DBContext -> ShowS

show :: DBContext -> String

showList :: [DBContext] -> ShowS

data ExtDBConfig Source #

Constructors

ExtDBConfig 

Fields

Instances

Instances details
Show ExtDBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Methods

showsPrec :: Int -> ExtDBConfig -> ShowS

show :: ExtDBConfig -> String

showList :: [ExtDBConfig] -> ShowS

Generic ExtDBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Associated Types

type Rep ExtDBConfig :: Type -> Type

Methods

from :: ExtDBConfig -> Rep ExtDBConfig x

to :: Rep ExtDBConfig x -> ExtDBConfig

FromJSON ExtDBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Methods

parseJSON :: Value -> Parser ExtDBConfig

parseJSONList :: Value -> Parser [ExtDBConfig]

type Rep ExtDBConfig Source # 
Instance details

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)))))

data DBConfig Source #

Constructors

DBConfig 

Fields

Instances

Instances details
Show DBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Methods

showsPrec :: Int -> DBConfig -> ShowS

show :: DBConfig -> String

showList :: [DBConfig] -> ShowS

Generic DBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Associated Types

type Rep DBConfig :: Type -> Type

Methods

from :: DBConfig -> Rep DBConfig x

to :: Rep DBConfig x -> DBConfig

FromJSON DBConfig Source # 
Instance details

Defined in Persistence.DBConfig

Methods

parseJSON :: Value -> Parser DBConfig

parseJSONList :: Value -> Parser [DBConfig]

type Rep DBConfig Source # 
Instance details

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 #