graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Metadata.Object

Synopsis

Documentation

data TableMetadataObjId Source #

Instances

Instances details
Generic TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep TableMetadataObjId :: Type -> Type #

Show TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data LogicalModelMetadataObjId Source #

Identifiers for logical model elements within the metadata structure.

Instances

Instances details
Generic LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep LogicalModelMetadataObjId :: Type -> Type #

Show LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep LogicalModelMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data NativeQueryMetadataObjId Source #

the native query should probably also link to its logical model

Instances

Instances details
Generic NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep NativeQueryMetadataObjId :: Type -> Type #

Show NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep NativeQueryMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data SourceMetadataObjId b Source #

Instances

Instances details
Generic (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep (SourceMetadataObjId b) :: Type -> Type #

Backend b => Show (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Backend b => Eq (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Backend b => Ord (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Backend b => Hashable (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep (SourceMetadataObjId b) = D1 ('MetaData "SourceMetadataObjId" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) (((C1 ('MetaCons "SMOTable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (TableName b))) :+: C1 ('MetaCons "SMOFunction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionName b)))) :+: (C1 ('MetaCons "SMOFunctionPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionName b)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: C1 ('MetaCons "SMOTableObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (TableName b)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableMetadataObjId)))) :+: ((C1 ('MetaCons "SMONativeQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NativeQueryName)) :+: C1 ('MetaCons "SMONativeQueryObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NativeQueryName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NativeQueryMetadataObjId))) :+: (C1 ('MetaCons "SMOStoredProcedure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionName b))) :+: (C1 ('MetaCons "SMOLogicalModel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelName)) :+: C1 ('MetaCons "SMOLogicalModelObj" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelMetadataObjId))))))

data MetadataObjId Source #

Instances

Instances details
Generic MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep MetadataObjId :: Type -> Type #

Show MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

ToErrorValue MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObjId = D1 ('MetaData "MetadataObjId" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) (((C1 ('MetaCons "MOSource" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName)) :+: (C1 ('MetaCons "MOSourceObjId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnyBackend SourceMetadataObjId))) :+: C1 ('MetaCons "MORemoteSchema" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName)))) :+: ((C1 ('MetaCons "MORemoteSchemaPermissions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: C1 ('MetaCons "MORemoteSchemaRemoteRelationship" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelName)))) :+: (C1 ('MetaCons "MOCustomTypes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MOAction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionName))))) :+: ((C1 ('MetaCons "MOActionPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: (C1 ('MetaCons "MOCronTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TriggerName)) :+: C1 ('MetaCons "MOInheritedRole" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)))) :+: ((C1 ('MetaCons "MOEndpoint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EndpointName)) :+: C1 ('MetaCons "MOQueryCollectionsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CollectionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListedQuery))) :+: (C1 ('MetaCons "MODataConnectorAgent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataConnectorName)) :+: C1 ('MetaCons "MOOpenTelemetry" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OpenTelemetryConfigSubobject))))))

data MetadataObject Source #

Instances

Instances details
Generic MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep MetadataObject :: Type -> Type #

Show MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObject = D1 ('MetaData "MetadataObject" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MetadataObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "_moId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObjId) :*: S1 ('MetaSel ('Just "_moDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)))

data InconsistentRoleEntity Source #

Constructors

InconsistentTablePermission 

Fields

  • SourceName
     
  • Text

    Table name -- using Text here instead of `TableName b` for simplification, Otherwise, we'll have to create a newtype wrapper around `TableName b` and then use it with AnyBackend

  • PermType
     
InconsistentRemoteSchemaPermission RemoteSchemaName 

Instances

Instances details
ToJSON InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep InconsistentRoleEntity :: Type -> Type #

Show InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

ToTxt InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data InconsistentMetadata Source #

Instances

Instances details
ToJSON InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep InconsistentMetadata :: Type -> Type #

Show InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Eq InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Ord InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentMetadata = D1 ('MetaData "InconsistentMetadata" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "InconsistentObject" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject))) :+: (C1 ('MetaCons "ConflictingObjects" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetadataObject])) :+: C1 ('MetaCons "DuplicateObjects" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObjId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Value])))) :+: ((C1 ('MetaCons "DuplicateRestVariables" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject)) :+: C1 ('MetaCons "InvalidRestSegments" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject))) :+: (C1 ('MetaCons "AmbiguousRestEndpoints" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetadataObject])) :+: C1 ('MetaCons "ConflictingInheritedPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InconsistentRoleEntity)))))

droppableInconsistentMetadata :: InconsistentMetadata -> Bool Source #

Helper function to differentiate which type of inconsistent metadata can be dropped, if an inconsistency cannot be resolved by dropping any part of the metadata then this function should return False, otherwise it should return True

groupInconsistentMetadataById :: [InconsistentMetadata] -> HashMap MetadataObjId (NonEmpty InconsistentMetadata) Source #

Builds a map from each unique metadata object id to the inconsistencies associated with it. Note that a single inconsistency can involve multiple metadata objects, so the same inconsistency may appear in the resulting map multiple times!