postgresql-simple-opts-0.5.0.1: An optparse-applicative and envy parser for postgresql-simple's connection options

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Simple.PartialOptions

Description

A resuable optparse-applicative parser for creating a postgresql-simple Connection

Synopsis

Documentation

data PartialOptions Source #

An optional version of Options. This includes an instance of | ParseRecord which provides the optparse-applicative Parser.

Instances
Eq PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Ord PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Read PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Show PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Generic PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Associated Types

type Rep PartialOptions :: Type -> Type #

Semigroup PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Monoid PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Default PartialOptions Source #

The PartialOptions version of defaultOptions

Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

Methods

def :: PartialOptions #

FromEnv PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

DefConfig PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

ToEnv PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

ParseRecord PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

type Rep PartialOptions Source # 
Instance details

Defined in Database.PostgreSQL.Simple.PartialOptions.Internal

type Rep PartialOptions = D1 (MetaData "PartialOptions" "Database.PostgreSQL.Simple.PartialOptions.Internal" "postgresql-simple-opts-0.5.0.1-GZ5yv9SW86aIqgPGvdqJDd" False) (C1 (MetaCons "PartialOptions" PrefixI True) ((((S1 (MetaSel (Just "host") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: S1 (MetaSel (Just "hostaddr") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String))) :*: (S1 (MetaSel (Just "port") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: (S1 (MetaSel (Just "user") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: S1 (MetaSel (Just "password") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String))))) :*: ((S1 (MetaSel (Just "dbname") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: (S1 (MetaSel (Just "connectTimeout") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: S1 (MetaSel (Just "clientEncoding") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)))) :*: (S1 (MetaSel (Just "options") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: (S1 (MetaSel (Just "fallbackApplicationName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: S1 (MetaSel (Just "keepalives") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)))))) :*: (((S1 (MetaSel (Just "keepalivesIdle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: (S1 (MetaSel (Just "keepalivesCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: S1 (MetaSel (Just "sslmode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)))) :*: (S1 (MetaSel (Just "requiressl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: (S1 (MetaSel (Just "sslcompression") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last Int)) :*: S1 (MetaSel (Just "sslcert") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String))))) :*: ((S1 (MetaSel (Just "sslkey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: (S1 (MetaSel (Just "sslrootcert") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: S1 (MetaSel (Just "requirepeer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)))) :*: (S1 (MetaSel (Just "krbsrvname") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: (S1 (MetaSel (Just "gsslib") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String)) :*: S1 (MetaSel (Just "service") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Last String))))))))

completeParser :: Parser Options Source #

Useful for testing or if only Options are needed.