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 #
resolveBackendInfo :: forall arr (m :: Type -> Type). (ArrowChoice arr, ArrowCache m arr, ArrowDistribute arr, ArrowWriter (Seq CollectItem) arr, MonadIO m, MonadBaseControl IO m, ProvidesNetwork m) => Logger Hasura -> arr (Dependency (Maybe (BackendInvalidationKeys 'DataConnector)), BackendConfig 'DataConnector) (BackendInfo 'DataConnector) Source #
resolveSourceConfig :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => SourceName -> SourceConnConfiguration 'DataConnector -> BackendSourceKind 'DataConnector -> BackendInfo 'DataConnector -> Environment -> Manager -> m (Either QErr (SourceConfig 'DataConnector)) Source #
resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => Logger Hasura -> SourceMetadata 'DataConnector -> SourceConfig 'DataConnector -> m (Either QErr (DBObjectsIntrospection 'DataConnector)) Source #
parseBoolExpOperations :: MonadError QErr m => ValueParser 'DataConnector m v -> FieldInfoMap (FieldInfo 'DataConnector) -> FieldInfoMap (FieldInfo 'DataConnector) -> ColumnReference 'DataConnector -> Value -> m [OpExpG 'DataConnector v] Source #
buildObjectRelationshipInfo :: MonadError QErr m => SourceConfig 'DataConnector -> SourceName -> HashMap (TableName 'DataConnector) (HashSet (ForeignKey 'DataConnector)) -> TableName 'DataConnector -> ObjRelDef 'DataConnector -> m (RelInfo 'DataConnector, Seq SchemaDependency) Source #
buildArrayRelationshipInfo :: MonadError QErr m => SourceConfig 'DataConnector -> SourceName -> HashMap (TableName 'DataConnector) (HashSet (ForeignKey 'DataConnector)) -> TableName 'DataConnector -> ArrRelDef 'DataConnector -> m (RelInfo 'DataConnector, Seq SchemaDependency) Source #
buildFunctionInfo :: MonadError QErr m => SourceName -> FunctionName 'DataConnector -> SystemDefined -> FunctionConfig 'DataConnector -> 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, MonadReader r m, Has (ScalarTypeParsingContext 'DataConnector) r) => 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 -> FieldInfoMap (FieldInfo '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, SourceCatalogMigrationState) Source #
listAllTables :: (CacheRM m, MonadBaseControl IO m, MetadataM m, MonadError QErr m, MonadIO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => SourceName -> m [TableName 'DataConnector] Source #
listAllTrackables :: (CacheRM m, MonadBaseControl IO m, MetadataM m, MonadError QErr m, MonadIO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => SourceName -> m (TrackableInfo 'DataConnector) Source #
getTableInfo :: (CacheRM m, MetadataM m, MonadError QErr m, MonadBaseControl IO m, MonadIO m) => SourceName -> TableName 'DataConnector -> m (Maybe (SourceTableInfo 'DataConnector)) Source #
validateNativeQuery :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'DataConnector -> LogicalModelInfo 'DataConnector -> NativeQueryMetadata 'DataConnector -> m (InterpolatedQuery ArgumentName) Source #
validateStoredProcedure :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'DataConnector -> LogicalModelInfo 'DataConnector -> StoredProcedureMetadata 'DataConnector -> m () Source #
getStoredProcedureGraphqlName :: MonadError QErr m => FunctionName 'DataConnector -> StoredProcedureConfig -> m Name Source #
supportsBeingRemoteRelationshipTarget :: SourceConfig 'DataConnector -> Bool Source #