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

Hasura.RQL.DDL.Schema.Function

Description

 
Synopsis

Documentation

newtype TrackFunction b Source #

Constructors

TrackFunction 

Fields

Instances

Instances details
Backend b => FromJSON (TrackFunction b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Function

Methods

parseJSON :: Value -> Parser (TrackFunction b)

parseJSONList :: Value -> Parser [TrackFunction b]

Backend b => ToJSON (TrackFunction b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Function

Methods

toJSON :: TrackFunction b -> Value

toEncoding :: TrackFunction b -> Encoding

toJSONList :: [TrackFunction b] -> Value

toEncodingList :: [TrackFunction b] -> Encoding

trackFunctionP1 :: forall b m. (CacheRM m, QErrM m, Backend b) => SourceName -> FunctionName b -> m () Source #

Track function, Phase 1: Validate function tracking operation. Fails if function is already being tracked, or if a table with the same name is being tracked.

handleMultipleFunctions :: forall b m a. (QErrM m, Backend b) => FunctionName b -> [a] -> m a Source #

data UnTrackFunction b Source #

Instances

Instances details
Backend b => FromJSON (UnTrackFunction b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Function

Methods

parseJSON :: Value -> Parser (UnTrackFunction b)

parseJSONList :: Value -> Parser [UnTrackFunction b]

data FunctionPermissionArgument b Source #

Instances

Instances details
Backend b => FromJSON (FunctionPermissionArgument b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Function

Methods

parseJSON :: Value -> Parser (FunctionPermissionArgument b)

parseJSONList :: Value -> Parser [FunctionPermissionArgument b]

data SetFunctionCustomization b Source #

Represents the payload of the API command pg_set_function_customization.

See the Hasura API reference for a detailed description.

runSetFunctionCustomization :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b, BackendMetadata b) => SetFunctionCustomization b -> m EncJSON Source #

Changes the custom names of a function. Used in the API command pg_set_function_customization.