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

Hasura.RQL.Types.Run

Documentation

data RunCtx Source #

Instances

Instances details
Monad m => MonadReader RunCtx (RunT m) Source # 
Instance details

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 #

Constructors

RunT 

Fields

Instances

Instances details
Monad m => MonadReader RunCtx (RunT m) Source # 
Instance details

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 #

Monad m => MonadError QErr (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

throwError :: QErr -> RunT m a #

catchError :: RunT m a -> (QErr -> RunT m a) -> RunT m a #

MonadBaseControl b m => MonadBaseControl b (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Associated Types

type StM (RunT m) a

Methods

liftBaseWith :: (RunInBase (RunT m) b -> b a) -> RunT m a

restoreM :: StM (RunT m) a -> RunT m a

MonadBase b m => MonadBase b (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

liftBase :: b α -> RunT m α

Monad m => Monad (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

(>>=) :: RunT m a -> (a -> RunT m b) -> RunT m b #

(>>) :: RunT m a -> RunT m b -> RunT m b #

return :: a -> RunT m a #

Functor m => Functor (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

fmap :: (a -> b) -> RunT m a -> RunT m b #

(<$) :: a -> RunT m b -> RunT m a #

Monad m => Applicative (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

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 #

MonadIO m => MonadIO (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

liftIO :: IO a -> RunT m a #

Monad m => HasHttpManagerM (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

askHttpManager :: RunT m Manager Source #

MonadTrace m => MonadTrace (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Monad m => UserInfoM (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Monad m => HasServerConfigCtx (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

MonadResolveSource m => MonadResolveSource (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

MonadMetadataStorage m => MonadMetadataStorageQueryAPI (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

MonadMetadataStorage m => MonadMetadataStorage (RunT m) Source # 
Instance details

Defined in Hasura.RQL.Types.Run

Methods

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 #

MonadQueryTags m => MonadQueryTags (RunT m) Source # 
Instance details

Defined in Hasura.GraphQL.Execute.Backend

type StM (RunT m) a Source # 
Instance details

Defined in Hasura.RQL.Types.Run

type StM (RunT m) a = StM (ReaderT RunCtx (ExceptT QErr m)) a