Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Define and handle v1/metadata API operations to track, untrack, and get stored procedures.
Synopsis
- data TrackStoredProcedure (b :: BackendType) = TrackStoredProcedure {}
- data GetStoredProcedure (b :: BackendType) = GetStoredProcedure {}
- runGetStoredProcedure :: forall b m. (BackendMetadata b, MetadataM m) => GetStoredProcedure b -> m EncJSON
- runTrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => TrackStoredProcedure b -> m EncJSON
- data UntrackStoredProcedure (b :: BackendType) = UntrackStoredProcedure {}
- runUntrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => UntrackStoredProcedure b -> m EncJSON
- dropStoredProcedureInMetadata :: forall b. BackendMetadata b => SourceName -> FunctionName b -> MetadataModifier
Documentation
data TrackStoredProcedure (b :: BackendType) Source #
Default implementation of the track_stored_procedure_query
request payload.
Instances
Backend b => FromJSON (TrackStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API parseJSON :: Value -> Parser (TrackStoredProcedure b) Source # parseJSONList :: Value -> Parser [TrackStoredProcedure b] Source # | |
Backend b => ToJSON (TrackStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API toJSON :: TrackStoredProcedure b -> Value Source # toEncoding :: TrackStoredProcedure b -> Encoding Source # toJSONList :: [TrackStoredProcedure b] -> Value Source # toEncodingList :: [TrackStoredProcedure b] -> Encoding Source # | |
Backend b => HasCodec (TrackStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API |
data GetStoredProcedure (b :: BackendType) Source #
API payload for the get_stored_procedure
endpoint.
Instances
Backend b => FromJSON (GetStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API parseJSON :: Value -> Parser (GetStoredProcedure b) Source # parseJSONList :: Value -> Parser [GetStoredProcedure b] Source # | |
Backend b => ToJSON (GetStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API toJSON :: GetStoredProcedure b -> Value Source # toEncoding :: GetStoredProcedure b -> Encoding Source # toJSONList :: [GetStoredProcedure b] -> Value Source # toEncodingList :: [GetStoredProcedure b] -> Encoding Source # | |
Backend b => Show (GetStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API showsPrec :: Int -> GetStoredProcedure b -> ShowS # show :: GetStoredProcedure b -> String # showList :: [GetStoredProcedure b] -> ShowS # | |
Backend b => Eq (GetStoredProcedure b) Source # | |
Defined in Hasura.StoredProcedure.API (==) :: GetStoredProcedure b -> GetStoredProcedure b -> Bool # (/=) :: GetStoredProcedure b -> GetStoredProcedure b -> Bool # |
runGetStoredProcedure :: forall b m. (BackendMetadata b, MetadataM m) => GetStoredProcedure b -> m EncJSON Source #
Handler for the get_stored_procedure
endpoint.
runTrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => TrackStoredProcedure b -> m EncJSON Source #
Handler for the track_stored_procedure
endpoint. The type 'TrackStoredProcedure b'
(appearing here in wrapped as 'BackendTrackStoredProcedure b' for AnyBackend
compatibility) is defined in 'class StoredProcedureMetadata'.
data UntrackStoredProcedure (b :: BackendType) Source #
API payload for the untrack_stored_procedure
endpoint.
Instances
runUntrackStoredProcedure :: forall b m. (BackendMetadata b, MonadError QErr m, CacheRWM m, MetadataM m) => UntrackStoredProcedure b -> m EncJSON Source #
Handler for the untrack_stored_procedure
endpoint.
dropStoredProcedureInMetadata :: forall b. BackendMetadata b => SourceName -> FunctionName b -> MetadataModifier Source #