Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CreateArrRel b = CreateArrRel {
- unCreateArrRel :: WithTable b (ArrRelDef b)
- newtype CreateObjRel b = CreateObjRel {
- unCreateObjRel :: WithTable b (ObjRelDef b)
- execCreateRelationship :: forall b m a. (BackendMetadata b, CacheRM m, MonadError QErr m, ToJSON a) => RelType -> WithTable b (RelDef a) -> Metadata -> m (MetadataObjId, MetadataModifier)
- runCreateRelationship :: forall m b a. (MonadError QErr m, CacheRWM m, ToJSON a, MetadataM m, BackendMetadata b) => RelType -> WithTable b (RelDef a) -> m EncJSON
- defaultBuildObjectRelationshipInfo :: forall b m. (QErrM m, Backend b) => SourceName -> HashMap (TableName b) (HashSet (ForeignKey b)) -> TableName b -> ObjRelDef b -> m (RelInfo b, Seq SchemaDependency)
- nativeQueryRelationshipSetup :: forall b m. (QErrM m, Backend b) => SourceName -> NativeQueryName -> RelType -> RelDef (RelManualNativeQueryConfig b) -> m (RelInfo b, Seq SchemaDependency)
- defaultBuildArrayRelationshipInfo :: forall b m. (QErrM m, Backend b) => SourceName -> HashMap (TableName b) (HashSet (ForeignKey b)) -> TableName b -> ArrRelDef b -> m (RelInfo b, Seq SchemaDependency)
- data DropRel b
- execDropRel :: forall b m. (MonadError QErr m, CacheRWM m, BackendMetadata b) => DropRel b -> m MetadataModifier
- runDropRel :: forall m b. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => DropRel b -> m EncJSON
- data SetRelComment b
- runSetRelComment :: forall m b. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => SetRelComment b -> m EncJSON
Documentation
newtype CreateArrRel b Source #
CreateArrRel | |
|
Instances
Backend b => FromJSON (CreateArrRel b) Source # | |
Defined in Hasura.RQL.DDL.Relationship parseJSON :: Value -> Parser (CreateArrRel b) Source # parseJSONList :: Value -> Parser [CreateArrRel b] Source # |
newtype CreateObjRel b Source #
CreateObjRel | |
|
Instances
Backend b => FromJSON (CreateObjRel b) Source # | |
Defined in Hasura.RQL.DDL.Relationship parseJSON :: Value -> Parser (CreateObjRel b) Source # parseJSONList :: Value -> Parser [CreateObjRel b] Source # |
execCreateRelationship :: forall b m a. (BackendMetadata b, CacheRM m, MonadError QErr m, ToJSON a) => RelType -> WithTable b (RelDef a) -> Metadata -> m (MetadataObjId, MetadataModifier) Source #
runCreateRelationship :: forall m b a. (MonadError QErr m, CacheRWM m, ToJSON a, MetadataM m, BackendMetadata b) => RelType -> WithTable b (RelDef a) -> m EncJSON Source #
defaultBuildObjectRelationshipInfo :: forall b m. (QErrM m, Backend b) => SourceName -> HashMap (TableName b) (HashSet (ForeignKey b)) -> TableName b -> ObjRelDef b -> m (RelInfo b, Seq SchemaDependency) Source #
nativeQueryRelationshipSetup :: forall b m. (QErrM m, Backend b) => SourceName -> NativeQueryName -> RelType -> RelDef (RelManualNativeQueryConfig b) -> m (RelInfo b, Seq SchemaDependency) Source #
set up a relationship from a Native Query onto another data source
defaultBuildArrayRelationshipInfo :: forall b m. (QErrM m, Backend b) => SourceName -> HashMap (TableName b) (HashSet (ForeignKey b)) -> TableName b -> ArrRelDef b -> m (RelInfo b, Seq SchemaDependency) Source #
execDropRel :: forall b m. (MonadError QErr m, CacheRWM m, BackendMetadata b) => DropRel b -> m MetadataModifier Source #
runDropRel :: forall m b. (MonadError QErr m, CacheRWM m, MetadataM m, BackendMetadata b) => DropRel b -> m EncJSON Source #
data SetRelComment b Source #
Instances
runSetRelComment :: forall m b. (CacheRWM m, MonadError QErr m, MetadataM m, BackendMetadata b) => SetRelComment b -> m EncJSON Source #