Methods
buildComputedFieldInfo :: MonadError QErr m => HashSet (TableName 'MySQL) -> TableName 'MySQL -> HashSet (Column 'MySQL) -> ComputedFieldName -> ComputedFieldDefinition 'MySQL -> RawFunctionInfo 'MySQL -> Comment -> m (ComputedFieldInfo 'MySQL) Source #
fetchAndValidateEnumValues :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MySQL -> TableName 'MySQL -> Maybe (PrimaryKey 'MySQL (RawColumnInfo 'MySQL)) -> [RawColumnInfo 'MySQL] -> m (Either QErr EnumValues) Source #
resolveSourceConfig :: (MonadIO m, MonadResolveSource m) => Logger Hasura -> SourceName -> SourceConnConfiguration 'MySQL -> BackendSourceKind 'MySQL -> BackendConfig 'MySQL -> Environment -> Manager -> m (Either QErr (SourceConfig 'MySQL)) Source #
resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => SourceMetadata 'MySQL -> SourceConfig 'MySQL -> SourceTypeCustomization -> m (Either QErr (ResolvedSource 'MySQL)) Source #
parseBoolExpOperations :: (MonadError QErr m, TableCoreInfoRM 'MySQL m) => ValueParser 'MySQL m v -> TableName 'MySQL -> FieldInfoMap (FieldInfo 'MySQL) -> ColumnReference 'MySQL -> Value -> m [OpExpG 'MySQL v] Source #
buildFunctionInfo :: MonadError QErr m => SourceName -> FunctionName 'MySQL -> SystemDefined -> FunctionConfig -> FunctionPermissionsMap -> RawFunctionInfo 'MySQL -> Maybe Text -> NamingCase -> m (FunctionInfo 'MySQL, SchemaDependency) Source #
updateColumnInEventTrigger :: TableName 'MySQL -> Column 'MySQL -> Column 'MySQL -> TableName 'MySQL -> EventTriggerConf 'MySQL -> EventTriggerConf 'MySQL Source #
parseCollectableType :: MonadError QErr m => CollectableType (ColumnType 'MySQL) -> Value -> m (PartialSQLExp 'MySQL) Source #
postDropSourceHook :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m) => SourceConfig 'MySQL -> TableEventTriggers 'MySQL -> m () Source #
validateRelationship :: MonadError QErr m => TableCache 'MySQL -> TableName 'MySQL -> Either (ObjRelDef 'MySQL) (ArrRelDef 'MySQL) -> m () Source #
buildComputedFieldBooleanExp :: (MonadError QErr m, TableCoreInfoRM 'MySQL m) => BoolExpResolver 'MySQL m v -> BoolExpRHSParser 'MySQL m v -> TableName 'MySQL -> FieldInfoMap (FieldInfo 'MySQL) -> ComputedFieldInfo 'MySQL -> Value -> m (AnnComputedFieldBoolExp 'MySQL v) Source #
prepareCatalog :: forall (m :: Type -> Type). (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MySQL -> ExceptT QErr m RecreateEventTriggers Source #