graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.Postgres.Types.Function

Description

Postgres Types Functions

Postgres specific types related to SQL functions

Synopsis

Documentation

newtype HasDefault Source #

Constructors

HasDefault 

Fields

Instances

Instances details
ToJSON HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Generic HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Associated Types

type Rep HasDefault :: Type -> Type #

Show HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

NFData HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Methods

rnf :: HasDefault -> () #

Eq HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Ord HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Hashable HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep HasDefault Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep HasDefault = D1 ('MetaData "HasDefault" "Hasura.Backends.Postgres.Types.Function" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "HasDefault" 'PrefixI 'True) (S1 ('MetaSel ('Just "unHasDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

data FunctionArg Source #

Instances

Instances details
ToJSON FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Generic FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Associated Types

type Rep FunctionArg :: Type -> Type #

Show FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

NFData FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Methods

rnf :: FunctionArg -> () #

Eq FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Ord FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Hashable FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep FunctionArg Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep FunctionArg = D1 ('MetaData "FunctionArg" "Hasura.Backends.Postgres.Types.Function" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FunctionArg" 'PrefixI 'True) (S1 ('MetaSel ('Just "faName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionArgName)) :*: (S1 ('MetaSel ('Just "faType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QualifiedPGType) :*: S1 ('MetaSel ('Just "faHasDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HasDefault))))

data ArgumentExp a Source #

Constructors

AETableRow

Table row accessor

AEActionResponsePayload

Hardcoded reference to hdb_catalog.hdb_action_log.response_payload

AESession a

JSON/JSONB hasura session variable object

AEInput a 

Instances

Instances details
Foldable ArgumentExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Methods

fold :: Monoid m => ArgumentExp m -> m #

foldMap :: Monoid m => (a -> m) -> ArgumentExp a -> m #

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

foldr :: (a -> b -> b) -> b -> ArgumentExp a -> b #

foldr' :: (a -> b -> b) -> b -> ArgumentExp a -> b #

foldl :: (b -> a -> b) -> b -> ArgumentExp a -> b #

foldl' :: (b -> a -> b) -> b -> ArgumentExp a -> b #

foldr1 :: (a -> a -> a) -> ArgumentExp a -> a #

foldl1 :: (a -> a -> a) -> ArgumentExp a -> a #

toList :: ArgumentExp a -> [a] #

null :: ArgumentExp a -> Bool #

length :: ArgumentExp a -> Int #

elem :: Eq a => a -> ArgumentExp a -> Bool #

maximum :: Ord a => ArgumentExp a -> a #

minimum :: Ord a => ArgumentExp a -> a #

sum :: Num a => ArgumentExp a -> a #

product :: Num a => ArgumentExp a -> a #

Traversable ArgumentExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Methods

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

sequenceA :: Applicative f => ArgumentExp (f a) -> f (ArgumentExp a) #

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

sequence :: Monad m => ArgumentExp (m a) -> m (ArgumentExp a) #

Functor ArgumentExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Methods

fmap :: (a -> b) -> ArgumentExp a -> ArgumentExp b #

(<$) :: a -> ArgumentExp b -> ArgumentExp a #

Generic (ArgumentExp a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Associated Types

type Rep (ArgumentExp a) :: Type -> Type #

Methods

from :: ArgumentExp a -> Rep (ArgumentExp a) x #

to :: Rep (ArgumentExp a) x -> ArgumentExp a #

Show a => Show (ArgumentExp a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Eq a => Eq (ArgumentExp a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

Hashable a => Hashable (ArgumentExp a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep (ArgumentExp a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.Function

type Rep (ArgumentExp a) = D1 ('MetaData "ArgumentExp" "Hasura.Backends.Postgres.Types.Function" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "AETableRow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AEActionResponsePayload" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "AESession" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)) :+: C1 ('MetaCons "AEInput" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a))))

onArgumentExp Source #

Arguments

:: a

Value to return for AETableRow

-> (Text -> a)

Create value to return for AEResponsePayload given column text

-> ArgumentExp a

ArgumentExp to eliminate

-> a 

Eliminate ArgumentExp

Used to ensure that the right column is used for AEActionResponsePayload.

actionResponsePayloadColumn :: Text Source #

Hardcoded hdb_catalog.hdb_action_log.response_payload column name