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

Hasura.Backends.DataConnector.Adapter.Metadata

Synopsis

Documentation

buildForeignKeySet :: [Maybe ForeignKeys] -> HashSet (ForeignKeyMetadata 'DataConnector) Source #

Construct a HashSet ForeignKeyMetadata DataConnector to build the foreign key constraints in the table metadata.

Orphan instances

BackendMetadata 'DataConnector Source # 
Instance details

Methods

buildComputedFieldInfo :: MonadError QErr m => HashSet (TableName 'DataConnector) -> TableName 'DataConnector -> HashSet (Column 'DataConnector) -> ComputedFieldName -> ComputedFieldDefinition 'DataConnector -> RawFunctionInfo 'DataConnector -> Comment -> m (ComputedFieldInfo 'DataConnector) Source #

fetchAndValidateEnumValues :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'DataConnector -> TableName 'DataConnector -> Maybe (PrimaryKey 'DataConnector (RawColumnInfo 'DataConnector)) -> [RawColumnInfo 'DataConnector] -> m (Either QErr EnumValues) Source #

resolveSourceConfig :: (MonadIO m, MonadResolveSource m) => Logger Hasura -> SourceName -> SourceConnConfiguration 'DataConnector -> BackendSourceKind 'DataConnector -> BackendConfig 'DataConnector -> Environment -> Manager -> m (Either QErr (SourceConfig 'DataConnector)) Source #

resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => SourceMetadata 'DataConnector -> SourceConfig 'DataConnector -> SourceTypeCustomization -> m (Either QErr (ResolvedSource 'DataConnector)) Source #

parseBoolExpOperations :: (MonadError QErr m, TableCoreInfoRM 'DataConnector m) => ValueParser 'DataConnector m v -> TableName 'DataConnector -> FieldInfoMap (FieldInfo 'DataConnector) -> ColumnReference 'DataConnector -> Value -> m [OpExpG 'DataConnector v] Source #

buildFunctionInfo :: MonadError QErr m => SourceName -> FunctionName 'DataConnector -> SystemDefined -> FunctionConfig -> FunctionPermissionsMap -> RawFunctionInfo 'DataConnector -> Maybe Text -> NamingCase -> m (FunctionInfo 'DataConnector, SchemaDependency) Source #

updateColumnInEventTrigger :: TableName 'DataConnector -> Column 'DataConnector -> Column 'DataConnector -> TableName 'DataConnector -> EventTriggerConf 'DataConnector -> EventTriggerConf 'DataConnector Source #

parseCollectableType :: MonadError QErr m => CollectableType (ColumnType 'DataConnector) -> Value -> m (PartialSQLExp 'DataConnector) Source #

postDropSourceHook :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m) => SourceConfig 'DataConnector -> TableEventTriggers 'DataConnector -> m () Source #

validateRelationship :: MonadError QErr m => TableCache 'DataConnector -> TableName 'DataConnector -> Either (ObjRelDef 'DataConnector) (ArrRelDef 'DataConnector) -> m () Source #

buildComputedFieldBooleanExp :: (MonadError QErr m, TableCoreInfoRM 'DataConnector m) => BoolExpResolver 'DataConnector m v -> BoolExpRHSParser 'DataConnector m v -> TableName 'DataConnector -> FieldInfoMap (FieldInfo 'DataConnector) -> ComputedFieldInfo 'DataConnector -> Value -> m (AnnComputedFieldBoolExp 'DataConnector v) Source #

prepareCatalog :: forall (m :: Type -> Type). (MonadIO m, MonadBaseControl IO m) => SourceConfig 'DataConnector -> ExceptT QErr m RecreateEventTriggers Source #