Hasura.RQL.Types.Run
data RunCtx Source #
Constructors
Fields
Defined in Hasura.RQL.Types.Run
Methods
ask :: RunT m RunCtx #
local :: (RunCtx -> RunCtx) -> RunT m a -> RunT m a #
reader :: (RunCtx -> a) -> RunT m a #
newtype RunT m a Source #
throwError :: QErr -> RunT m a #
catchError :: RunT m a -> (QErr -> RunT m a) -> RunT m a #
Associated Types
type StM (RunT m) a
liftBaseWith :: (RunInBase (RunT m) b -> b a) -> RunT m a
restoreM :: StM (RunT m) a -> RunT m a
liftBase :: b α -> RunT m α
(>>=) :: RunT m a -> (a -> RunT m b) -> RunT m b #
(>>) :: RunT m a -> RunT m b -> RunT m b #
return :: a -> RunT m a #
fmap :: (a -> b) -> RunT m a -> RunT m b #
(<$) :: a -> RunT m b -> RunT m a #
pure :: a -> RunT m a #
(<*>) :: RunT m (a -> b) -> RunT m a -> RunT m b #
liftA2 :: (a -> b -> c) -> RunT m a -> RunT m b -> RunT m c #
(*>) :: RunT m a -> RunT m b -> RunT m b #
(<*) :: RunT m a -> RunT m b -> RunT m a #
liftIO :: IO a -> RunT m a #
askHttpManager :: RunT m Manager Source #
trace :: Text -> RunT m a -> RunT m a Source #
currentContext :: RunT m TraceContext Source #
currentReporter :: RunT m Reporter Source #
attachMetadata :: TracingMetadata -> RunT m () Source #
askUserInfo :: RunT m UserInfo Source #
askServerConfigCtx :: RunT m ServerConfigCtx Source #
getPGSourceResolver :: RunT m (SourceResolver ('Postgres 'Vanilla)) Source #
getMSSQLSourceResolver :: RunT m (SourceResolver 'MSSQL) Source #
createOneOffScheduledEvent :: OneOffEvent -> RunT m EventId Source #
createCronEvents :: [CronEventSeed] -> RunT m () Source #
dropFutureCronEvents :: ClearCronEvents -> RunT m () Source #
deleteActionData :: ActionName -> RunT m () Source #
fetchInvocations :: GetInvocationsBy -> ScheduledEventPagination -> RunT m (WithTotalCount [ScheduledEventInvocation]) Source #
fetchScheduledEvents :: GetScheduledEvents -> RunT m Value Source #
dropEvent :: ScheduledEventId -> ScheduledEventType -> RunT m () Source #
fetchCatalogState :: RunT m CatalogState Source #
updateCatalogState :: CatalogStateType -> Value -> RunT m () Source #
fetchMetadataResourceVersion :: RunT m MetadataResourceVersion Source #
fetchMetadata :: RunT m (Metadata, MetadataResourceVersion) Source #
fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> RunT m [(MetadataResourceVersion, CacheInvalidations)] Source #
setMetadata :: MetadataResourceVersion -> Metadata -> RunT m MetadataResourceVersion Source #
notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> RunT m () Source #
getCatalogState :: RunT m CatalogState Source #
setCatalogState :: CatalogStateType -> Value -> RunT m () Source #
getMetadataDbUid :: RunT m MetadataDbId Source #
checkMetadataStorageHealth :: RunT m () Source #
getDeprivedCronTriggerStats :: [TriggerName] -> RunT m [CronTriggerStats] Source #
getScheduledEventsForDelivery :: RunT m ([CronEvent], [OneOffScheduledEvent]) Source #
insertCronEvents :: [CronEventSeed] -> RunT m () Source #
insertOneOffScheduledEvent :: OneOffEvent -> RunT m EventId Source #
insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> RunT m () Source #
setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> RunT m () Source #
unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> RunT m Int Source #
unlockAllLockedScheduledEvents :: RunT m () Source #
clearFutureCronEvents :: ClearCronEvents -> RunT m () Source #
getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> RunT m (WithTotalCount [OneOffScheduledEvent]) Source #
getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> RunT m (WithTotalCount [CronEvent]) Source #
getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> RunT m (WithTotalCount [ScheduledEventInvocation]) Source #
deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> RunT m () Source #
insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> RunT m ActionId Source #
fetchUndeliveredActionEvents :: RunT m [ActionLogItem] Source #
setActionStatus :: ActionId -> AsyncActionStatus -> RunT m () Source #
fetchActionResponse :: ActionId -> RunT m ActionLogResponse Source #
clearActionData :: ActionName -> RunT m () Source #
setProcessingActionLogsToPending :: LockedActionIdArray -> RunT m () Source #
Defined in Hasura.GraphQL.Execute.Backend
createQueryTags :: QueryTagsAttributes -> Maybe QueryTagsConfig -> Tagged (RunT m) QueryTagsComment Source #
peelRun :: RunCtx -> RunT m a -> ExceptT QErr m a Source #