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

Hasura.Metadata.Class

Description

This module has type class and types which implements the Metadata Storage Abstraction

Synopsis

Documentation

class MonadError QErr m => MonadMetadataStorage m where Source #

Metadata storage abstraction via a type class.

This type class enables storing and managing Hasura metadata in an isolated database which will not interfere with user's database where tables/functions are defined. Hence, it'll enable support for databases of multiple backends like MySQL, MSSQL etc.

This class has functions broadly related to:

  1. Metadata Management ---------------------- Basic metadata management functions such as retrieving metadata from storage database and replacing the given metadata. TODO: Console specific operations
  2. Scheduled Triggers --------------------- Eventing sub-system for scheduled triggers is implemented via metadata storage. For more details, refer description in ScheduledTrigger module.

TODO: Functions need to be added to the type class - Retrieving invocation logs from storage (console requirement) - Deleting an scheduled event - Creating an one-off scheduled event

  1. Async Actions ---------------- Operations to implement async actions sub-system. This includes recording an async action event and retreiving the details of action delivery to the webhook. For more details see Note [Async action architecture] in Action module.

It is believed that all the above three are implemented in a single storage system (ex: a Postgres database). We can split the functions into appropriate and specific type classes in future iterations if required.

Methods

fetchMetadataResourceVersion :: m MetadataResourceVersion Source #

fetchMetadata :: m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> m () Source #

getCatalogState :: m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> m () Source #

getMetadataDbUid :: m MetadataDbId Source #

checkMetadataStorageHealth :: m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> m Int Source #

unlockAllLockedScheduledEvents :: m () Source #

clearFutureCronEvents :: ClearCronEvents -> m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> m ActionId Source #

fetchUndeliveredActionEvents :: m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> m () Source #

fetchActionResponse :: ActionId -> m ActionLogResponse Source #

clearActionData :: ActionName -> m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> m () Source #

Instances

Instances details
MonadMetadataStorage m => MonadMetadataStorage (TraceT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: TraceT m MetadataResourceVersion Source #

fetchMetadata :: TraceT m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> TraceT m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> TraceT m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> TraceT m () Source #

getCatalogState :: TraceT m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> TraceT m () Source #

getMetadataDbUid :: TraceT m MetadataDbId Source #

checkMetadataStorageHealth :: TraceT m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> TraceT m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: TraceT m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> TraceT m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> TraceT m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> TraceT m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> TraceT m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> TraceT m Int Source #

unlockAllLockedScheduledEvents :: TraceT m () Source #

clearFutureCronEvents :: ClearCronEvents -> TraceT m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> TraceT m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> TraceT m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> TraceT m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> TraceT m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> TraceT m ActionId Source #

fetchUndeliveredActionEvents :: TraceT m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> TraceT m () Source #

fetchActionResponse :: ActionId -> TraceT m ActionLogResponse Source #

clearActionData :: ActionName -> TraceT m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> TraceT m () Source #

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

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: MetadataT m MetadataResourceVersion Source #

fetchMetadata :: MetadataT m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> MetadataT m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> MetadataT m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> MetadataT m () Source #

getCatalogState :: MetadataT m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> MetadataT m () Source #

getMetadataDbUid :: MetadataT m MetadataDbId Source #

checkMetadataStorageHealth :: MetadataT m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> MetadataT m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: MetadataT m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> MetadataT m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> MetadataT m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> MetadataT m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> MetadataT m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> MetadataT m Int Source #

unlockAllLockedScheduledEvents :: MetadataT m () Source #

clearFutureCronEvents :: ClearCronEvents -> MetadataT m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataT m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataT m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> MetadataT m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> MetadataT m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> MetadataT m ActionId Source #

fetchUndeliveredActionEvents :: MetadataT m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> MetadataT m () Source #

fetchActionResponse :: ActionId -> MetadataT m ActionLogResponse Source #

clearActionData :: ActionName -> MetadataT m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> MetadataT m () Source #

(Monad m, Monad (t m), MonadTrans t, MonadMetadataStorage (MetadataStorageT m)) => MonadMetadataStorage (MetadataStorageT (t m)) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: MetadataStorageT (t m) MetadataResourceVersion Source #

fetchMetadata :: MetadataStorageT (t m) (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> MetadataStorageT (t m) [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> MetadataStorageT (t m) MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> MetadataStorageT (t m) () Source #

getCatalogState :: MetadataStorageT (t m) CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> MetadataStorageT (t m) () Source #

getMetadataDbUid :: MetadataStorageT (t m) MetadataDbId Source #

checkMetadataStorageHealth :: MetadataStorageT (t m) () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> MetadataStorageT (t m) [CronTriggerStats] Source #

getScheduledEventsForDelivery :: MetadataStorageT (t m) ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> MetadataStorageT (t m) () Source #

insertOneOffScheduledEvent :: OneOffEvent -> MetadataStorageT (t m) EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> MetadataStorageT (t m) () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> MetadataStorageT (t m) () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> MetadataStorageT (t m) Int Source #

unlockAllLockedScheduledEvents :: MetadataStorageT (t m) () Source #

clearFutureCronEvents :: ClearCronEvents -> MetadataStorageT (t m) () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (t m) (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (t m) (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> MetadataStorageT (t m) (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> MetadataStorageT (t m) () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> MetadataStorageT (t m) ActionId Source #

fetchUndeliveredActionEvents :: MetadataStorageT (t m) [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> MetadataStorageT (t m) () Source #

fetchActionResponse :: ActionId -> MetadataStorageT (t m) ActionLogResponse Source #

clearActionData :: ActionName -> MetadataStorageT (t m) () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> MetadataStorageT (t m) () Source #

MonadIO m => MonadMetadataStorage (MetadataStorageT (PGMetadataStorageAppT m)) Source #

Each of the function in the type class is executed in a totally separate transaction.

To learn more about why the instance is derived as following, see Note [Generic MetadataStorageT transformer]

Instance details

Defined in Hasura.App

Methods

fetchMetadataResourceVersion :: MetadataStorageT (PGMetadataStorageAppT m) MetadataResourceVersion Source #

fetchMetadata :: MetadataStorageT (PGMetadataStorageAppT m) (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> MetadataStorageT (PGMetadataStorageAppT m) [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> MetadataStorageT (PGMetadataStorageAppT m) MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getCatalogState :: MetadataStorageT (PGMetadataStorageAppT m) CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getMetadataDbUid :: MetadataStorageT (PGMetadataStorageAppT m) MetadataDbId Source #

checkMetadataStorageHealth :: MetadataStorageT (PGMetadataStorageAppT m) () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> MetadataStorageT (PGMetadataStorageAppT m) [CronTriggerStats] Source #

getScheduledEventsForDelivery :: MetadataStorageT (PGMetadataStorageAppT m) ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

insertOneOffScheduledEvent :: OneOffEvent -> MetadataStorageT (PGMetadataStorageAppT m) EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> MetadataStorageT (PGMetadataStorageAppT m) Int Source #

unlockAllLockedScheduledEvents :: MetadataStorageT (PGMetadataStorageAppT m) () Source #

clearFutureCronEvents :: ClearCronEvents -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> MetadataStorageT (PGMetadataStorageAppT m) ActionId Source #

fetchUndeliveredActionEvents :: MetadataStorageT (PGMetadataStorageAppT m) [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

fetchActionResponse :: ActionId -> MetadataStorageT (PGMetadataStorageAppT m) ActionLogResponse Source #

clearActionData :: ActionName -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

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 #

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

Defined in Hasura.RQL.DDL.Schema.Cache

Methods

fetchMetadataResourceVersion :: CacheRWT m MetadataResourceVersion Source #

fetchMetadata :: CacheRWT m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> CacheRWT m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> CacheRWT m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> CacheRWT m () Source #

getCatalogState :: CacheRWT m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> CacheRWT m () Source #

getMetadataDbUid :: CacheRWT m MetadataDbId Source #

checkMetadataStorageHealth :: CacheRWT m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> CacheRWT m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: CacheRWT m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> CacheRWT m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> CacheRWT m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> CacheRWT m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> CacheRWT m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> CacheRWT m Int Source #

unlockAllLockedScheduledEvents :: CacheRWT m () Source #

clearFutureCronEvents :: ClearCronEvents -> CacheRWT m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> CacheRWT m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> CacheRWT m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> CacheRWT m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> CacheRWT m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> CacheRWT m ActionId Source #

fetchUndeliveredActionEvents :: CacheRWT m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> CacheRWT m () Source #

fetchActionResponse :: ActionId -> CacheRWT m ActionLogResponse Source #

clearActionData :: ActionName -> CacheRWT m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> CacheRWT m () Source #

MonadMetadataStorage m => MonadMetadataStorage (ExceptT QErr m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: ExceptT QErr m MetadataResourceVersion Source #

fetchMetadata :: ExceptT QErr m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> ExceptT QErr m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> ExceptT QErr m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> ExceptT QErr m () Source #

getCatalogState :: ExceptT QErr m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> ExceptT QErr m () Source #

getMetadataDbUid :: ExceptT QErr m MetadataDbId Source #

checkMetadataStorageHealth :: ExceptT QErr m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> ExceptT QErr m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: ExceptT QErr m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> ExceptT QErr m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> ExceptT QErr m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> ExceptT QErr m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> ExceptT QErr m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> ExceptT QErr m Int Source #

unlockAllLockedScheduledEvents :: ExceptT QErr m () Source #

clearFutureCronEvents :: ClearCronEvents -> ExceptT QErr m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> ExceptT QErr m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> ExceptT QErr m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> ExceptT QErr m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> ExceptT QErr m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> ExceptT QErr m ActionId Source #

fetchUndeliveredActionEvents :: ExceptT QErr m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> ExceptT QErr m () Source #

fetchActionResponse :: ActionId -> ExceptT QErr m ActionLogResponse Source #

clearActionData :: ActionName -> ExceptT QErr m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> ExceptT QErr m () Source #

MonadMetadataStorage m => MonadMetadataStorage (ReaderT r m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: ReaderT r m MetadataResourceVersion Source #

fetchMetadata :: ReaderT r m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> ReaderT r m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> ReaderT r m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> ReaderT r m () Source #

getCatalogState :: ReaderT r m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> ReaderT r m () Source #

getMetadataDbUid :: ReaderT r m MetadataDbId Source #

checkMetadataStorageHealth :: ReaderT r m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> ReaderT r m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: ReaderT r m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> ReaderT r m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> ReaderT r m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> ReaderT r m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> ReaderT r m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> ReaderT r m Int Source #

unlockAllLockedScheduledEvents :: ReaderT r m () Source #

clearFutureCronEvents :: ClearCronEvents -> ReaderT r m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> ReaderT r m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> ReaderT r m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> ReaderT r m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> ReaderT r m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> ReaderT r m ActionId Source #

fetchUndeliveredActionEvents :: ReaderT r m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> ReaderT r m () Source #

fetchActionResponse :: ActionId -> ReaderT r m ActionLogResponse Source #

clearActionData :: ActionName -> ReaderT r m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> ReaderT r m () Source #

MonadMetadataStorage m => MonadMetadataStorage (StateT s m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: StateT s m MetadataResourceVersion Source #

fetchMetadata :: StateT s m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> StateT s m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> StateT s m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> StateT s m () Source #

getCatalogState :: StateT s m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> StateT s m () Source #

getMetadataDbUid :: StateT s m MetadataDbId Source #

checkMetadataStorageHealth :: StateT s m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> StateT s m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: StateT s m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> StateT s m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> StateT s m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> StateT s m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> StateT s m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> StateT s m Int Source #

unlockAllLockedScheduledEvents :: StateT s m () Source #

clearFutureCronEvents :: ClearCronEvents -> StateT s m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> StateT s m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> StateT s m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> StateT s m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> StateT s m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> StateT s m ActionId Source #

fetchUndeliveredActionEvents :: StateT s m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> StateT s m () Source #

fetchActionResponse :: ActionId -> StateT s m ActionLogResponse Source #

clearActionData :: ActionName -> StateT s m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> StateT s m () Source #

MonadMetadataStorage m => MonadMetadataStorage (TxET QErr m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: TxET QErr m MetadataResourceVersion Source #

fetchMetadata :: TxET QErr m (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> TxET QErr m [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> TxET QErr m MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> TxET QErr m () Source #

getCatalogState :: TxET QErr m CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> TxET QErr m () Source #

getMetadataDbUid :: TxET QErr m MetadataDbId Source #

checkMetadataStorageHealth :: TxET QErr m () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> TxET QErr m [CronTriggerStats] Source #

getScheduledEventsForDelivery :: TxET QErr m ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> TxET QErr m () Source #

insertOneOffScheduledEvent :: OneOffEvent -> TxET QErr m EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> TxET QErr m () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> TxET QErr m () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> TxET QErr m Int Source #

unlockAllLockedScheduledEvents :: TxET QErr m () Source #

clearFutureCronEvents :: ClearCronEvents -> TxET QErr m () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> TxET QErr m (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> TxET QErr m (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> TxET QErr m (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> TxET QErr m () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> TxET QErr m ActionId Source #

fetchUndeliveredActionEvents :: TxET QErr m [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> TxET QErr m () Source #

fetchActionResponse :: ActionId -> TxET QErr m ActionLogResponse Source #

clearActionData :: ActionName -> TxET QErr m () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> TxET QErr m () Source #

newtype MetadataStorageT m a Source #

The MetadataStorageT transformer adds ability to throw exceptions for monads deriving @MonadMetadataStorage instance. For more details see Note [Generic MetadataStorageT transformer]

Constructors

MetadataStorageT 

Instances

Instances details
MonadTrans MetadataStorageT Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

lift :: Monad m => m a -> MetadataStorageT m a #

MonadState s m => MonadState s (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

get :: MetadataStorageT m s #

put :: s -> MetadataStorageT m () #

state :: (s -> (a, s)) -> MetadataStorageT m a #

MonadReader r m => MonadReader r (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

ask :: MetadataStorageT m r #

local :: (r -> r) -> MetadataStorageT m a -> MetadataStorageT m a #

reader :: (r -> a) -> MetadataStorageT m a #

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

Defined in Hasura.Metadata.Class

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

Defined in Hasura.Metadata.Class

Associated Types

type StM (MetadataStorageT m) a

Methods

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

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

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

Defined in Hasura.Metadata.Class

Methods

liftBase :: b α -> MetadataStorageT m α

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

Defined in Hasura.Metadata.Class

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

Defined in Hasura.Metadata.Class

Methods

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

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

MonadFix m => MonadFix (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

mfix :: (a -> MetadataStorageT m a) -> MetadataStorageT m a #

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

Defined in Hasura.Metadata.Class

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

Defined in Hasura.Metadata.Class

Methods

liftIO :: IO a -> MetadataStorageT m a #

HasHttpManagerM m => HasHttpManagerM (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

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

Defined in Hasura.Metadata.Class

HasReporter m => HasReporter (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

HasServerConfigCtx m => HasServerConfigCtx (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

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

Defined in Hasura.Metadata.Class

MonadMetadataStorageQueryAPI (MetadataStorageT (PGMetadataStorageAppT CacheBuild)) Source # 
Instance details

Defined in Hasura.App

(Monad m, Monad (t m), MonadTrans t, MonadMetadataStorage (MetadataStorageT m)) => MonadMetadataStorage (MetadataStorageT (t m)) Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

fetchMetadataResourceVersion :: MetadataStorageT (t m) MetadataResourceVersion Source #

fetchMetadata :: MetadataStorageT (t m) (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> MetadataStorageT (t m) [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> MetadataStorageT (t m) MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> MetadataStorageT (t m) () Source #

getCatalogState :: MetadataStorageT (t m) CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> MetadataStorageT (t m) () Source #

getMetadataDbUid :: MetadataStorageT (t m) MetadataDbId Source #

checkMetadataStorageHealth :: MetadataStorageT (t m) () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> MetadataStorageT (t m) [CronTriggerStats] Source #

getScheduledEventsForDelivery :: MetadataStorageT (t m) ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> MetadataStorageT (t m) () Source #

insertOneOffScheduledEvent :: OneOffEvent -> MetadataStorageT (t m) EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> MetadataStorageT (t m) () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> MetadataStorageT (t m) () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> MetadataStorageT (t m) Int Source #

unlockAllLockedScheduledEvents :: MetadataStorageT (t m) () Source #

clearFutureCronEvents :: ClearCronEvents -> MetadataStorageT (t m) () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (t m) (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (t m) (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> MetadataStorageT (t m) (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> MetadataStorageT (t m) () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> MetadataStorageT (t m) ActionId Source #

fetchUndeliveredActionEvents :: MetadataStorageT (t m) [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> MetadataStorageT (t m) () Source #

fetchActionResponse :: ActionId -> MetadataStorageT (t m) ActionLogResponse Source #

clearActionData :: ActionName -> MetadataStorageT (t m) () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> MetadataStorageT (t m) () Source #

MonadIO m => MonadMetadataStorage (MetadataStorageT (PGMetadataStorageAppT m)) Source #

Each of the function in the type class is executed in a totally separate transaction.

To learn more about why the instance is derived as following, see Note [Generic MetadataStorageT transformer]

Instance details

Defined in Hasura.App

Methods

fetchMetadataResourceVersion :: MetadataStorageT (PGMetadataStorageAppT m) MetadataResourceVersion Source #

fetchMetadata :: MetadataStorageT (PGMetadataStorageAppT m) (Metadata, MetadataResourceVersion) Source #

fetchMetadataNotifications :: MetadataResourceVersion -> InstanceId -> MetadataStorageT (PGMetadataStorageAppT m) [(MetadataResourceVersion, CacheInvalidations)] Source #

setMetadata :: MetadataResourceVersion -> Metadata -> MetadataStorageT (PGMetadataStorageAppT m) MetadataResourceVersion Source #

notifySchemaCacheSync :: MetadataResourceVersion -> InstanceId -> CacheInvalidations -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getCatalogState :: MetadataStorageT (PGMetadataStorageAppT m) CatalogState Source #

setCatalogState :: CatalogStateType -> Value -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getMetadataDbUid :: MetadataStorageT (PGMetadataStorageAppT m) MetadataDbId Source #

checkMetadataStorageHealth :: MetadataStorageT (PGMetadataStorageAppT m) () Source #

getDeprivedCronTriggerStats :: [TriggerName] -> MetadataStorageT (PGMetadataStorageAppT m) [CronTriggerStats] Source #

getScheduledEventsForDelivery :: MetadataStorageT (PGMetadataStorageAppT m) ([CronEvent], [OneOffScheduledEvent]) Source #

insertCronEvents :: [CronEventSeed] -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

insertOneOffScheduledEvent :: OneOffEvent -> MetadataStorageT (PGMetadataStorageAppT m) EventId Source #

insertScheduledEventInvocation :: Invocation 'ScheduledType -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

setScheduledEventOp :: ScheduledEventId -> ScheduledEventOp -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

unlockScheduledEvents :: ScheduledEventType -> [ScheduledEventId] -> MetadataStorageT (PGMetadataStorageAppT m) Int Source #

unlockAllLockedScheduledEvents :: MetadataStorageT (PGMetadataStorageAppT m) () Source #

clearFutureCronEvents :: ClearCronEvents -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

getOneOffScheduledEvents :: ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [OneOffScheduledEvent]) Source #

getCronEvents :: TriggerName -> ScheduledEventPagination -> [ScheduledEventStatus] -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [CronEvent]) Source #

getInvocations :: GetInvocationsBy -> ScheduledEventPagination -> MetadataStorageT (PGMetadataStorageAppT m) (WithTotalCount [ScheduledEventInvocation]) Source #

deleteScheduledEvent :: ScheduledEventId -> ScheduledEventType -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

insertAction :: ActionName -> SessionVariables -> [Header] -> Value -> MetadataStorageT (PGMetadataStorageAppT m) ActionId Source #

fetchUndeliveredActionEvents :: MetadataStorageT (PGMetadataStorageAppT m) [ActionLogItem] Source #

setActionStatus :: ActionId -> AsyncActionStatus -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

fetchActionResponse :: ActionId -> MetadataStorageT (PGMetadataStorageAppT m) ActionLogResponse Source #

clearActionData :: ActionName -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

setProcessingActionLogsToPending :: LockedActionIdArray -> MetadataStorageT (PGMetadataStorageAppT m) () Source #

HasResourceLimits m => HasResourceLimits (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Server.Limits

MonadQueryLog m => MonadQueryLog (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.GraphQL.Logging

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

Defined in Hasura.GraphQL.Execute.Backend

HttpLog m => HttpLog (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Server.Logging

MonadGQLExecutionCheck m => MonadGQLExecutionCheck (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.GraphQL.Execute.Common

MonadExecuteQuery m => MonadExecuteQuery (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.GraphQL.Transport.HTTP

MonadMetadataApiAuthorization m => MonadMetadataApiAuthorization (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Server.App

MFunctor MetadataStorageT Source # 
Instance details

Defined in Hasura.Metadata.Class

Methods

hoist :: forall m n (b :: k). Monad m => (forall a. m a -> n a) -> MetadataStorageT m b -> MetadataStorageT n b

type ExtraHttpLogMetadata (MetadataStorageT m) Source # 
Instance details

Defined in Hasura.Server.Logging

type StM (MetadataStorageT m) a Source # 
Instance details

Defined in Hasura.Metadata.Class

type StM (MetadataStorageT m) a = StM (ExceptT QErr m) a

class MonadMetadataStorage m => MonadMetadataStorageQueryAPI m where Source #

Operations from @MonadMetadataStorage used in 'v1query' and 'v1metadata' APIs

Minimal complete definition

Nothing

Methods

createOneOffScheduledEvent :: OneOffEvent -> m EventId Source #

Record a one-off event

createCronEvents :: [CronEventSeed] -> m () Source #

Record a cron event

dropFutureCronEvents :: ClearCronEvents -> m () Source #

Clear cron events

deleteActionData :: ActionName -> m () Source #

Delete async action logs

fetchInvocations :: GetInvocationsBy -> ScheduledEventPagination -> m (WithTotalCount [ScheduledEventInvocation]) Source #

Fetch cron/oneoff scheduled event invocations

fetchScheduledEvents :: GetScheduledEvents -> m Value Source #

Fetch cron/oneoff scheduled events

dropEvent :: ScheduledEventId -> ScheduledEventType -> m () Source #

Drop a cron/oneoff scheduled event

fetchCatalogState :: m CatalogState Source #

Retrieve the state from metadata storage catalog

updateCatalogState :: CatalogStateType -> Value -> m () Source #

Update the state from metadata storage catalog

Instances

Instances details
MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (TraceT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (MetadataT m) Source # 
Instance details

Defined in Hasura.Metadata.Class

MonadMetadataStorageQueryAPI (MetadataStorageT (PGMetadataStorageAppT CacheBuild)) Source # 
Instance details

Defined in Hasura.App

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

Defined in Hasura.RQL.Types.Run

MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (CacheRWT m) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Cache

MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (ReaderT r m) Source # 
Instance details

Defined in Hasura.Metadata.Class

MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (StateT s m) Source # 
Instance details

Defined in Hasura.Metadata.Class

MonadMetadataStorageQueryAPI m => MonadMetadataStorageQueryAPI (TxET QErr m) Source # 
Instance details

Defined in Hasura.Metadata.Class