Safe Haskell | None |
---|---|
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 -> Maybe Text -> m EncJSON
- handleMultipleFunctions :: forall b m a. (QErrM m, Backend b) => FunctionName b -> [a] -> m a
- 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, BackendMetadata b) => SetFunctionCustomization b -> m EncJSON
Documentation
newtype TrackFunction b Source #
Instances
Backend b => FromJSON (TrackFunction b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function parseJSON :: Value -> Parser (TrackFunction b) parseJSONList :: Value -> Parser [TrackFunction b] | |
Backend b => ToJSON (TrackFunction b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function 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.
trackFunctionP2 :: forall b m. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => SourceName -> FunctionName b -> FunctionConfig -> Maybe Text -> m EncJSON Source #
handleMultipleFunctions :: forall b m a. (QErrM m, Backend b) => FunctionName b -> [a] -> m a 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
:
TrackFunctionV2 | |
|
Instances
Backend b => FromJSON (TrackFunctionV2 b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function parseJSON :: Value -> Parser (TrackFunctionV2 b) parseJSONList :: Value -> Parser [TrackFunctionV2 b] |
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.RQL.DDL.Schema.Function parseJSON :: Value -> Parser (UnTrackFunction b) parseJSONList :: Value -> Parser [UnTrackFunction b] |
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.RQL.DDL.Schema.Function parseJSON :: Value -> Parser (FunctionPermissionArgument b) parseJSONList :: Value -> Parser [FunctionPermissionArgument b] |
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 => Eq (SetFunctionCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function (==) :: SetFunctionCustomization b -> SetFunctionCustomization b -> Bool # (/=) :: SetFunctionCustomization b -> SetFunctionCustomization b -> Bool # | |
Backend b => Show (SetFunctionCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function showsPrec :: Int -> SetFunctionCustomization b -> ShowS # show :: SetFunctionCustomization b -> String # showList :: [SetFunctionCustomization b] -> ShowS # | |
Backend b => FromJSON (SetFunctionCustomization b) Source # | |
Defined in Hasura.RQL.DDL.Schema.Function parseJSON :: Value -> Parser (SetFunctionCustomization b) parseJSONList :: Value -> Parser [SetFunctionCustomization b] |
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
.