Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TrackFunction b = TrackFunction {
- tfName :: FunctionName b
- trackFunctionP1 :: forall b m. (CacheRM m, QErrM m, Backend b) => SourceName -> FunctionName b -> m ()
- trackFunctionP2 :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => SourceName -> FunctionName b -> FunctionConfig b -> Maybe Text -> m EncJSON
- getSingleUniqueFunctionOverload :: forall b m. (QErrM m, Backend b) => FunctionName b -> FunctionOverloads b -> m (RawFunctionInfo b)
- runTrackFunc :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackFunction b -> m EncJSON
- data TrackFunctionV2 (b :: BackendType) = TrackFunctionV2 {}
- runTrackFunctionV2 :: forall b m. (BackendMetadata b, QErrM m, CacheRWM m, MetadataM m) => TrackFunctionV2 b -> m EncJSON
- data UnTrackFunction b = UnTrackFunction {}
- runUntrackFunc :: forall b m. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => UnTrackFunction b -> m EncJSON
- data FunctionPermissionArgument b = FunctionPermissionArgument {}
- runCreateFunctionPermission :: forall b m. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => FunctionPermissionArgument b -> m EncJSON
- dropFunctionPermissionInMetadata :: forall b. BackendMetadata b => SourceName -> FunctionName b -> RoleName -> MetadataModifier
- doesFunctionPermissionExist :: forall b. BackendMetadata b => Metadata -> SourceName -> FunctionName b -> RoleName -> Bool
- runDropFunctionPermission :: forall m b. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => FunctionPermissionArgument b -> m EncJSON
- data SetFunctionCustomization b = SetFunctionCustomization {}
- runSetFunctionCustomization :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b) => SetFunctionCustomization b -> m EncJSON
Documentation
newtype TrackFunction b Source #
Instances
Backend b => FromJSON (TrackFunction b) Source # | |
Defined in Hasura.Function.API parseJSON :: Value -> Parser (TrackFunction b) Source # parseJSONList :: Value -> Parser [TrackFunction b] Source # | |
Backend b => ToJSON (TrackFunction b) Source # | |
Defined in Hasura.Function.API toJSON :: TrackFunction b -> Value Source # toEncoding :: TrackFunction b -> Encoding Source # toJSONList :: [TrackFunction b] -> Value Source # toEncodingList :: [TrackFunction b] -> Encoding Source # |
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.
trackFunctionP2 :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => SourceName -> FunctionName b -> FunctionConfig b -> Maybe Text -> m EncJSON Source #
getSingleUniqueFunctionOverload :: forall b m. (QErrM m, Backend b) => FunctionName b -> FunctionOverloads b -> m (RawFunctionInfo b) Source #
runTrackFunc :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => TrackFunction b -> m EncJSON Source #
data TrackFunctionV2 (b :: BackendType) Source #
JSON API payload for v2 of track_function
:
Instances
Backend b => FromJSON (TrackFunctionV2 b) Source # | |
Defined in Hasura.Function.API parseJSON :: Value -> Parser (TrackFunctionV2 b) Source # parseJSONList :: Value -> Parser [TrackFunctionV2 b] Source # |
runTrackFunctionV2 :: forall b m. (BackendMetadata b, QErrM m, CacheRWM m, MetadataM m) => TrackFunctionV2 b -> m EncJSON Source #
data UnTrackFunction b Source #
JSON API payload for untrack_function
:
Instances
Backend b => FromJSON (UnTrackFunction b) Source # | |
Defined in Hasura.Function.API parseJSON :: Value -> Parser (UnTrackFunction b) Source # parseJSONList :: Value -> Parser [UnTrackFunction b] Source # |
runUntrackFunc :: forall b m. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => UnTrackFunction b -> m EncJSON Source #
data FunctionPermissionArgument b Source #
FunctionPermissionArgument | |
|
Instances
Backend b => FromJSON (FunctionPermissionArgument b) Source # | |
Defined in Hasura.Function.API parseJSON :: Value -> Parser (FunctionPermissionArgument b) Source # parseJSONList :: Value -> Parser [FunctionPermissionArgument b] Source # |
runCreateFunctionPermission :: forall b m. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => FunctionPermissionArgument b -> m EncJSON Source #
dropFunctionPermissionInMetadata :: forall b. BackendMetadata b => SourceName -> FunctionName b -> RoleName -> MetadataModifier Source #
doesFunctionPermissionExist :: forall b. BackendMetadata b => Metadata -> SourceName -> FunctionName b -> RoleName -> Bool Source #
runDropFunctionPermission :: forall m b. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => FunctionPermissionArgument b -> m EncJSON Source #
data SetFunctionCustomization b Source #
Represents the payload of the API command pg_set_function_customization
.
See the Hasura API reference for a detailed description.
Instances
Backend b => FromJSON (SetFunctionCustomization b) Source # | |
Defined in Hasura.Function.API parseJSON :: Value -> Parser (SetFunctionCustomization b) Source # parseJSONList :: Value -> Parser [SetFunctionCustomization b] Source # | |
Backend b => Show (SetFunctionCustomization b) Source # | |
Defined in Hasura.Function.API showsPrec :: Int -> SetFunctionCustomization b -> ShowS # show :: SetFunctionCustomization b -> String # showList :: [SetFunctionCustomization b] -> ShowS # | |
Backend b => Eq (SetFunctionCustomization b) Source # | |
Defined in Hasura.Function.API (==) :: SetFunctionCustomization b -> SetFunctionCustomization b -> Bool # (/=) :: SetFunctionCustomization b -> SetFunctionCustomization b -> Bool # |
runSetFunctionCustomization :: forall b m. (QErrM m, CacheRWM m, MetadataM m, Backend b) => SetFunctionCustomization b -> m EncJSON Source #
Changes the custom names of a function. Used in the API command pg_set_function_customization
.