Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hasura.Server.Types
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
Constructors
RequestId | |
Fields
|
Instances
Eq RequestId Source # | |
Show RequestId Source # | |
Hashable RequestId Source # | |
Defined in Hasura.Server.Types | |
FromJSON RequestId Source # | |
Defined in Hasura.Server.Types | |
ToJSON RequestId Source # | |
Defined in Hasura.Server.Types Methods 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 | |
ToJSON DbUid Source # | |
Defined in Hasura.Server.Types Methods toEncoding :: DbUid -> Encoding toJSONList :: [DbUid] -> Value toEncodingList :: [DbUid] -> Encoding |
Constructors
DbVersion | |
Fields
|
Instances
Eq DbVersion Source # | |
Show DbVersion Source # | |
ToJSON DbVersion Source # | |
Defined in Hasura.Server.Types Methods toEncoding :: DbVersion -> Encoding toJSONList :: [DbVersion] -> Value toEncodingList :: [DbVersion] -> Encoding |
Constructors
PGVersion | |
Fields
|
Instances
Eq PGVersion Source # | |
Show PGVersion Source # | |
ToJSON PGVersion Source # | |
Defined in Hasura.Server.Types Methods toEncoding :: PGVersion -> Encoding toJSONList :: [PGVersion] -> Value toEncodingList :: [PGVersion] -> Encoding |
pgToDbVersion :: PGVersion -> DbVersion Source #
newtype MetadataDbId Source #
A uuid of the postgres metadata db.
Constructors
MetadataDbId | |
Fields
|
Instances
Eq MetadataDbId Source # | |
Defined in Hasura.Server.Types | |
Show MetadataDbId Source # | |
Defined in Hasura.Server.Types Methods showsPrec :: Int -> MetadataDbId -> ShowS # show :: MetadataDbId -> String # showList :: [MetadataDbId] -> ShowS # | |
FromJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types | |
ToJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types Methods toJSON :: MetadataDbId -> Value toEncoding :: MetadataDbId -> Encoding toJSONList :: [MetadataDbId] -> Value toEncodingList :: [MetadataDbId] -> Encoding | |
FromCol MetadataDbId Source # | |
Defined in Hasura.Server.Types Methods fromCol :: Maybe ByteString -> Either Text MetadataDbId | |
ToPrepArg MetadataDbId Source # | |
Defined in Hasura.Server.Types Methods toPrepVal :: MetadataDbId -> PrepArg |
mdDbIdToDbUid :: MetadataDbId -> DbUid Source #
newtype InstanceId Source #
Constructors
InstanceId | |
Fields
|
Instances
Eq InstanceId Source # | |
Defined in Hasura.Server.Types | |
Show InstanceId Source # | |
Defined in Hasura.Server.Types Methods showsPrec :: Int -> InstanceId -> ShowS # show :: InstanceId -> String # showList :: [InstanceId] -> ShowS # | |
FromJSON InstanceId Source # | |
Defined in Hasura.Server.Types | |
ToJSON InstanceId Source # | |
Defined in Hasura.Server.Types Methods toJSON :: InstanceId -> Value toEncoding :: InstanceId -> Encoding toJSONList :: [InstanceId] -> Value toEncodingList :: [InstanceId] -> Encoding | |
FromCol InstanceId Source # | |
Defined in Hasura.Server.Types Methods fromCol :: Maybe ByteString -> Either Text InstanceId | |
ToPrepArg InstanceId Source # | |
Defined in Hasura.Server.Types Methods toPrepVal :: InstanceId -> PrepArg |
generateInstanceId :: IO InstanceId Source #
Generate an InstanceId
from a UUID
data ExperimentalFeature Source #
Constructors
EFInheritedRoles | |
EFOptimizePermissionFilters | |
EFNamingConventions | |
EFStreamingSubscriptions | |
EFApolloFederation |
Instances
data MaintenanceMode a Source #
Constructors
MaintenanceModeEnabled a | |
MaintenanceModeDisabled |
Instances
Eq a => Eq (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types Methods (==) :: MaintenanceMode a -> MaintenanceMode a -> Bool # (/=) :: MaintenanceMode a -> MaintenanceMode a -> Bool # | |
Show a => Show (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types Methods showsPrec :: Int -> MaintenanceMode a -> ShowS # show :: MaintenanceMode a -> String # showList :: [MaintenanceMode a] -> ShowS # | |
FromJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types Methods parseJSON :: Value -> Parser (MaintenanceMode ()) parseJSONList :: Value -> Parser [MaintenanceMode ()] | |
ToJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types Methods 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]
Constructors
ReadOnlyModeEnabled | |
ReadOnlyModeDisabled |
Instances
Eq ReadOnlyMode Source # | |
Defined in Hasura.Server.Types | |
Show ReadOnlyMode Source # | |
Defined in Hasura.Server.Types Methods 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.
Constructors
EventingEnabled | |
EventingDisabled |
Instances
Eq EventingMode Source # | |
Defined in Hasura.Server.Types | |
Show EventingMode Source # | |
Defined in Hasura.Server.Types Methods showsPrec :: Int -> EventingMode -> ShowS # show :: EventingMode -> String # showList :: [EventingMode] -> ShowS # |
data ServerConfigCtx Source #
Constructors
ServerConfigCtx | |
Fields
|
Instances
Eq ServerConfigCtx Source # | |
Defined in Hasura.Server.Types Methods (==) :: ServerConfigCtx -> ServerConfigCtx -> Bool # (/=) :: ServerConfigCtx -> ServerConfigCtx -> Bool # | |
Show ServerConfigCtx Source # | |
Defined in Hasura.Server.Types Methods showsPrec :: Int -> ServerConfigCtx -> ShowS # show :: ServerConfigCtx -> String # showList :: [ServerConfigCtx] -> ShowS # |
class Monad m => HasServerConfigCtx m where Source #
Methods