graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.Postgres.Connection.Settings

Description

Postgres Connection Settings

This module contains types and combinators related to postgres connection, pool, and replica related settings.

Documentation

data PostgresPoolSettings Source #

Instances

Instances details
Eq PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Show PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep PostgresPoolSettings :: Type -> Type #

NFData PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

rnf :: PostgresPoolSettings -> () #

Hashable PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

FromJSON PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser PostgresPoolSettings

parseJSONList :: Value -> Parser [PostgresPoolSettings]

ToJSON PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Cacheable PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresPoolSettings Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresPoolSettings = D1 ('MetaData "PostgresPoolSettings" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PostgresPoolSettings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_ppsMaxConnections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_ppsIdleTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "_ppsRetries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "_ppsPoolTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NominalDiffTime)) :*: S1 ('MetaSel ('Just "_ppsConnectionLifetime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NominalDiffTime))))))

data SSLMode Source #

Instances

Instances details
Bounded SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Enum SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Eq SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

(==) :: SSLMode -> SSLMode -> Bool #

(/=) :: SSLMode -> SSLMode -> Bool #

Ord SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Show SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep SSLMode :: Type -> Type #

Methods

from :: SSLMode -> Rep SSLMode x #

to :: Rep SSLMode x -> SSLMode #

Semigroup SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

NFData SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

rnf :: SSLMode -> () #

Hashable SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

hashWithSalt :: Int -> SSLMode -> Int

hash :: SSLMode -> Int

FromJSON SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser SSLMode

parseJSONList :: Value -> Parser [SSLMode]

ToJSON SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

toJSON :: SSLMode -> Value

toEncoding :: SSLMode -> Encoding

toJSONList :: [SSLMode] -> Value

toEncodingList :: [SSLMode] -> Encoding

Cacheable SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep SSLMode Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep SSLMode = D1 ('MetaData "SSLMode" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "Disable" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Allow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Prefer" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Require" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VerifyCA" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "VerifyFull" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype CertVar Source #

Constructors

CertVar String 

Instances

Instances details
Eq CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

(==) :: CertVar -> CertVar -> Bool #

(/=) :: CertVar -> CertVar -> Bool #

Show CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep CertVar :: Type -> Type #

Methods

from :: CertVar -> Rep CertVar x #

to :: Rep CertVar x -> CertVar #

NFData CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

rnf :: CertVar -> () #

Hashable CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

hashWithSalt :: Int -> CertVar -> Int

hash :: CertVar -> Int

FromJSON CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser CertVar

parseJSONList :: Value -> Parser [CertVar]

ToJSON CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

toJSON :: CertVar -> Value

toEncoding :: CertVar -> Encoding

toJSONList :: [CertVar] -> Value

toEncodingList :: [CertVar] -> Encoding

Cacheable CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep CertVar Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep CertVar = D1 ('MetaData "CertVar" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "CertVar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))

newtype CertData Source #

Constructors

CertData 

Fields

Instances

Instances details
Eq CertData Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Show CertData Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic CertData Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep CertData :: Type -> Type #

Methods

from :: CertData -> Rep CertData x #

to :: Rep CertData x -> CertData #

ToJSON CertData Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

toJSON :: CertData -> Value

toEncoding :: CertData -> Encoding

toJSONList :: [CertData] -> Value

toEncodingList :: [CertData] -> Encoding

type Rep CertData Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep CertData = D1 ('MetaData "CertData" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "CertData" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data PGClientCerts p a Source #

Instances

Instances details
Bitraversable PGClientCerts Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> PGClientCerts a b -> f (PGClientCerts c d) #

Bifoldable PGClientCerts Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

bifold :: Monoid m => PGClientCerts m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> PGClientCerts a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> PGClientCerts a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> PGClientCerts a b -> c #

Bifunctor PGClientCerts Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

bimap :: (a -> b) -> (c -> d) -> PGClientCerts a c -> PGClientCerts b d #

first :: (a -> b) -> PGClientCerts a c -> PGClientCerts b c #

second :: (b -> c) -> PGClientCerts a b -> PGClientCerts a c #

Functor (PGClientCerts p) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

fmap :: (a -> b) -> PGClientCerts p a -> PGClientCerts p b #

(<$) :: a -> PGClientCerts p b -> PGClientCerts p a #

Foldable (PGClientCerts p) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

fold :: Monoid m => PGClientCerts p m -> m #

foldMap :: Monoid m => (a -> m) -> PGClientCerts p a -> m #

foldMap' :: Monoid m => (a -> m) -> PGClientCerts p a -> m #

foldr :: (a -> b -> b) -> b -> PGClientCerts p a -> b #

foldr' :: (a -> b -> b) -> b -> PGClientCerts p a -> b #

foldl :: (b -> a -> b) -> b -> PGClientCerts p a -> b #

foldl' :: (b -> a -> b) -> b -> PGClientCerts p a -> b #

foldr1 :: (a -> a -> a) -> PGClientCerts p a -> a #

foldl1 :: (a -> a -> a) -> PGClientCerts p a -> a #

toList :: PGClientCerts p a -> [a] #

null :: PGClientCerts p a -> Bool #

length :: PGClientCerts p a -> Int #

elem :: Eq a => a -> PGClientCerts p a -> Bool #

maximum :: Ord a => PGClientCerts p a -> a #

minimum :: Ord a => PGClientCerts p a -> a #

sum :: Num a => PGClientCerts p a -> a #

product :: Num a => PGClientCerts p a -> a #

Traversable (PGClientCerts p) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

traverse :: Applicative f => (a -> f b) -> PGClientCerts p a -> f (PGClientCerts p b) #

sequenceA :: Applicative f => PGClientCerts p (f a) -> f (PGClientCerts p a) #

mapM :: Monad m => (a -> m b) -> PGClientCerts p a -> m (PGClientCerts p b) #

sequence :: Monad m => PGClientCerts p (m a) -> m (PGClientCerts p a) #

(Eq a, Eq p) => Eq (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

(==) :: PGClientCerts p a -> PGClientCerts p a -> Bool #

(/=) :: PGClientCerts p a -> PGClientCerts p a -> Bool #

(Show a, Show p) => Show (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep (PGClientCerts p a) :: Type -> Type #

Methods

from :: PGClientCerts p a -> Rep (PGClientCerts p a) x #

to :: Rep (PGClientCerts p a) x -> PGClientCerts p a #

(NFData p, NFData a) => NFData (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

rnf :: PGClientCerts p a -> () #

(Hashable p, Hashable a) => Hashable (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

hashWithSalt :: Int -> PGClientCerts p a -> Int

hash :: PGClientCerts p a -> Int

(FromJSON p, FromJSON a) => FromJSON (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser (PGClientCerts p a)

parseJSONList :: Value -> Parser [PGClientCerts p a]

(ToJSON p, ToJSON a) => ToJSON (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

toJSON :: PGClientCerts p a -> Value

toEncoding :: PGClientCerts p a -> Encoding

toJSONList :: [PGClientCerts p a] -> Value

toEncodingList :: [PGClientCerts p a] -> Encoding

(Cacheable p, Cacheable a) => Cacheable (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep (PGClientCerts p a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep (PGClientCerts p a) = D1 ('MetaData "PGClientCerts" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PGClientCerts" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pgcSslCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe a)) :*: S1 ('MetaSel ('Just "pgcSslKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe a))) :*: (S1 ('MetaSel ('Just "pgcSslRootCert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe a)) :*: (S1 ('MetaSel ('Just "pgcSslMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SSLMode) :*: S1 ('MetaSel ('Just "pgcSslPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe p))))))

data PostgresSourceConnInfo Source #

Instances

Instances details
Eq PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Show PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep PostgresSourceConnInfo :: Type -> Type #

NFData PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

rnf :: PostgresSourceConnInfo -> () #

Hashable PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

FromJSON PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser PostgresSourceConnInfo

parseJSONList :: Value -> Parser [PostgresSourceConnInfo]

ToJSON PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Cacheable PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresSourceConnInfo Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresSourceConnInfo = D1 ('MetaData "PostgresSourceConnInfo" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PostgresSourceConnInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_psciDatabaseUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UrlConf) :*: S1 ('MetaSel ('Just "_psciPoolSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PostgresPoolSettings))) :*: (S1 ('MetaSel ('Just "_psciUsePreparedStatements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "_psciIsolationLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TxIsolation) :*: S1 ('MetaSel ('Just "_psciSslConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (PGClientCerts CertVar CertVar)))))))

data PostgresConnConfiguration Source #

Instances

Instances details
Eq PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Show PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Generic PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Associated Types

type Rep PostgresConnConfiguration :: Type -> Type #

NFData PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

HasCodec PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Hashable PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

FromJSON PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Methods

parseJSON :: Value -> Parser PostgresConnConfiguration

parseJSONList :: Value -> Parser [PostgresConnConfiguration]

ToJSON PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

Cacheable PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresConnConfiguration Source # 
Instance details

Defined in Hasura.Backends.Postgres.Connection.Settings

type Rep PostgresConnConfiguration = D1 ('MetaData "PostgresConnConfiguration" "Hasura.Backends.Postgres.Connection.Settings" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PostgresConnConfiguration" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pccConnectionInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PostgresSourceConnInfo) :*: (S1 ('MetaSel ('Just "_pccReadReplicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty PostgresSourceConnInfo))) :*: S1 ('MetaSel ('Just "_pccExtensionsSchema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExtensionsSchema))))

Orphan instances

Generic TxIsolation Source # 
Instance details

Associated Types

type Rep TxIsolation :: Type -> Type #

Methods

from :: TxIsolation -> Rep TxIsolation x #

to :: Rep TxIsolation x -> TxIsolation #

NFData TxIsolation Source # 
Instance details

Methods

rnf :: TxIsolation -> () #

Hashable TxIsolation Source # 
Instance details

Methods

hashWithSalt :: Int -> TxIsolation -> Int

hash :: TxIsolation -> Int

FromJSON TxIsolation Source # 
Instance details

Methods

parseJSON :: Value -> Parser TxIsolation

parseJSONList :: Value -> Parser [TxIsolation]

ToJSON TxIsolation Source # 
Instance details

Methods

toJSON :: TxIsolation -> Value

toEncoding :: TxIsolation -> Encoding

toJSONList :: [TxIsolation] -> Value

toEncodingList :: [TxIsolation] -> Encoding

Cacheable TxIsolation Source # 
Instance details

Methods

unchanged :: Accesses -> TxIsolation -> TxIsolation -> Bool Source #