Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RequestId = RequestId {
- unRequestId :: Text
- getRequestId :: MonadIO m => [Header] -> m (RequestId, [Header])
- newtype DbUid = DbUid {
- getDbUid :: Text
- newtype DbVersion = DbVersion {
- unDbVersion :: Text
- newtype PGVersion = PGVersion {
- unPGVersion :: Int
- pgToDbVersion :: PGVersion -> DbVersion
- newtype MetadataDbId = MetadataDbId {
- getMetadataDbId :: Text
- mdDbIdToDbUid :: MetadataDbId -> DbUid
- newtype InstanceId = InstanceId {
- getInstanceId :: Text
- generateInstanceId :: IO InstanceId
- data ExperimentalFeature
- data MaintenanceMode a
- data ReadOnlyMode
- data EventingMode
- data ServerConfigCtx = ServerConfigCtx {
- _sccFunctionPermsCtx :: InferFunctionPermissions
- _sccRemoteSchemaPermsCtx :: RemoteSchemaPermissions
- _sccSQLGenCtx :: SQLGenCtx
- _sccMaintenanceMode :: MaintenanceMode ()
- _sccExperimentalFeatures :: HashSet ExperimentalFeature
- _sccEventingMode :: EventingMode
- _sccReadOnlyMode :: ReadOnlyMode
- _sccDefaultNamingConvention :: Maybe NamingCase
- class Monad m => HasServerConfigCtx m where
Documentation
RequestId | |
|
Instances
Eq RequestId Source # | |
Show RequestId Source # | |
Hashable RequestId Source # | |
Defined in Hasura.Server.Types | |
FromJSON RequestId Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser RequestId parseJSONList :: Value -> Parser [RequestId] | |
ToJSON RequestId Source # | |
Defined in Hasura.Server.Types toEncoding :: RequestId -> Encoding toJSONList :: [RequestId] -> Value toEncodingList :: [RequestId] -> Encoding |
getRequestId :: MonadIO m => [Header] -> m (RequestId, [Header]) Source #
A uuid of a source database.
Instances
Eq DbUid Source # | |
Show DbUid Source # | |
FromJSON DbUid Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser DbUid parseJSONList :: Value -> Parser [DbUid] | |
ToJSON DbUid Source # | |
Defined in Hasura.Server.Types |
DbVersion | |
|
Instances
Eq DbVersion Source # | |
Show DbVersion Source # | |
ToJSON DbVersion Source # | |
Defined in Hasura.Server.Types toEncoding :: DbVersion -> Encoding toJSONList :: [DbVersion] -> Value toEncodingList :: [DbVersion] -> Encoding |
Instances
Eq PGVersion Source # | |
Show PGVersion Source # | |
ToJSON PGVersion Source # | |
Defined in Hasura.Server.Types toEncoding :: PGVersion -> Encoding toJSONList :: [PGVersion] -> Value toEncodingList :: [PGVersion] -> Encoding |
pgToDbVersion :: PGVersion -> DbVersion Source #
newtype MetadataDbId Source #
A uuid of the postgres metadata db.
MetadataDbId | |
|
Instances
Eq MetadataDbId Source # | |
Defined in Hasura.Server.Types (==) :: MetadataDbId -> MetadataDbId -> Bool # (/=) :: MetadataDbId -> MetadataDbId -> Bool # | |
Show MetadataDbId Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> MetadataDbId -> ShowS # show :: MetadataDbId -> String # showList :: [MetadataDbId] -> ShowS # | |
FromJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser MetadataDbId parseJSONList :: Value -> Parser [MetadataDbId] | |
ToJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types toJSON :: MetadataDbId -> Value toEncoding :: MetadataDbId -> Encoding toJSONList :: [MetadataDbId] -> Value toEncodingList :: [MetadataDbId] -> Encoding | |
FromCol MetadataDbId Source # | |
Defined in Hasura.Server.Types fromCol :: Maybe ByteString -> Either Text MetadataDbId | |
ToPrepArg MetadataDbId Source # | |
Defined in Hasura.Server.Types toPrepVal :: MetadataDbId -> PrepArg |
mdDbIdToDbUid :: MetadataDbId -> DbUid Source #
newtype InstanceId Source #
InstanceId | |
|
Instances
Eq InstanceId Source # | |
Defined in Hasura.Server.Types (==) :: InstanceId -> InstanceId -> Bool # (/=) :: InstanceId -> InstanceId -> Bool # | |
Show InstanceId Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> InstanceId -> ShowS # show :: InstanceId -> String # showList :: [InstanceId] -> ShowS # | |
FromJSON InstanceId Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser InstanceId parseJSONList :: Value -> Parser [InstanceId] | |
ToJSON InstanceId Source # | |
Defined in Hasura.Server.Types toJSON :: InstanceId -> Value toEncoding :: InstanceId -> Encoding toJSONList :: [InstanceId] -> Value toEncodingList :: [InstanceId] -> Encoding | |
FromCol InstanceId Source # | |
Defined in Hasura.Server.Types fromCol :: Maybe ByteString -> Either Text InstanceId | |
ToPrepArg InstanceId Source # | |
Defined in Hasura.Server.Types toPrepVal :: InstanceId -> PrepArg |
generateInstanceId :: IO InstanceId Source #
Generate an InstanceId
from a UUID
data ExperimentalFeature Source #
EFInheritedRoles | |
EFOptimizePermissionFilters | |
EFNamingConventions | |
EFStreamingSubscriptions | |
EFApolloFederation |
Instances
data MaintenanceMode a Source #
Instances
Eq a => Eq (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types (==) :: MaintenanceMode a -> MaintenanceMode a -> Bool # (/=) :: MaintenanceMode a -> MaintenanceMode a -> Bool # | |
Show a => Show (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> MaintenanceMode a -> ShowS # show :: MaintenanceMode a -> String # showList :: [MaintenanceMode a] -> ShowS # | |
FromJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser (MaintenanceMode ()) parseJSONList :: Value -> Parser [MaintenanceMode ()] | |
ToJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types toJSON :: MaintenanceMode () -> Value toEncoding :: MaintenanceMode () -> Encoding toJSONList :: [MaintenanceMode ()] -> Value toEncodingList :: [MaintenanceMode ()] -> Encoding | |
FromEnv (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Init.Env |
data ReadOnlyMode Source #
See Note [ReadOnly Mode]
Instances
Eq ReadOnlyMode Source # | |
Defined in Hasura.Server.Types (==) :: ReadOnlyMode -> ReadOnlyMode -> Bool # (/=) :: ReadOnlyMode -> ReadOnlyMode -> Bool # | |
Show ReadOnlyMode Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> ReadOnlyMode -> ShowS # show :: ReadOnlyMode -> String # showList :: [ReadOnlyMode] -> ShowS # |
data EventingMode Source #
EventingMode decides whether the eventing subsystem should be enabled or disabled.
EventDisabled
mode disables Event Triggers, Async Actions, Scheduled Events and source catalaog migrations.
This is an internal feature and will not be exposed to users.
Instances
Eq EventingMode Source # | |
Defined in Hasura.Server.Types (==) :: EventingMode -> EventingMode -> Bool # (/=) :: EventingMode -> EventingMode -> Bool # | |
Show EventingMode Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> EventingMode -> ShowS # show :: EventingMode -> String # showList :: [EventingMode] -> ShowS # |
data ServerConfigCtx Source #
ServerConfigCtx | |
|
Instances
Eq ServerConfigCtx Source # | |
Defined in Hasura.Server.Types (==) :: ServerConfigCtx -> ServerConfigCtx -> Bool # (/=) :: ServerConfigCtx -> ServerConfigCtx -> Bool # | |
Show ServerConfigCtx Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> ServerConfigCtx -> ShowS # show :: ServerConfigCtx -> String # showList :: [ServerConfigCtx] -> ShowS # |
class Monad m => HasServerConfigCtx m where Source #
Instances
HasServerConfigCtx CacheBuild Source # | |
HasServerConfigCtx m => HasServerConfigCtx (MetadataT m) Source # | |
Defined in Hasura.RQL.Types.SchemaCache.Build | |
HasServerConfigCtx m => HasServerConfigCtx (MetadataStorageT m) Source # | |
Defined in Hasura.Metadata.Class | |
Monad m => HasServerConfigCtx (RunT m) Source # | |
Defined in Hasura.RQL.Types.Run | |
HasServerConfigCtx m => HasServerConfigCtx (CacheRWT m) Source # | |
Defined in Hasura.RQL.DDL.Schema.Cache | |
HasServerConfigCtx m => HasServerConfigCtx (PGMetadataStorageAppT m) Source # | |
Defined in Hasura.App | |
HasServerConfigCtx m => HasServerConfigCtx (ExceptT e m) Source # | |
Defined in Hasura.Server.Types | |
HasServerConfigCtx m => HasServerConfigCtx (ReaderT r m) Source # | |
Defined in Hasura.Server.Types | |
HasServerConfigCtx m => HasServerConfigCtx (StateT s m) Source # | |
Defined in Hasura.Server.Types | |
HasServerConfigCtx m => HasServerConfigCtx (TableCacheRT b m) Source # | |
Defined in Hasura.RQL.Types.SchemaCache |