Methods
buildComputedFieldInfo :: MonadError QErr m => HashSet (TableName 'MSSQL) -> TableName 'MSSQL -> HashSet (Column 'MSSQL) -> ComputedFieldName -> ComputedFieldDefinition 'MSSQL -> RawFunctionInfo 'MSSQL -> Comment -> m (ComputedFieldInfo 'MSSQL) Source #
fetchAndValidateEnumValues :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MSSQL -> TableName 'MSSQL -> Maybe (PrimaryKey 'MSSQL (RawColumnInfo 'MSSQL)) -> [RawColumnInfo 'MSSQL] -> 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 'MSSQL)), BackendConfig 'MSSQL) (BackendInfo 'MSSQL) Source #
resolveSourceConfig :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => SourceName -> SourceConnConfiguration 'MSSQL -> BackendSourceKind 'MSSQL -> BackendInfo 'MSSQL -> Environment -> Manager -> m (Either QErr (SourceConfig 'MSSQL)) Source #
resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => Logger Hasura -> SourceMetadata 'MSSQL -> SourceConfig 'MSSQL -> m (Either QErr (DBObjectsIntrospection 'MSSQL)) Source #
parseBoolExpOperations :: MonadError QErr m => ValueParser 'MSSQL m v -> FieldInfoMap (FieldInfo 'MSSQL) -> FieldInfoMap (FieldInfo 'MSSQL) -> ColumnReference 'MSSQL -> Value -> m [OpExpG 'MSSQL v] Source #
buildObjectRelationshipInfo :: MonadError QErr m => SourceConfig 'MSSQL -> SourceName -> HashMap (TableName 'MSSQL) (HashSet (ForeignKey 'MSSQL)) -> TableName 'MSSQL -> ObjRelDef 'MSSQL -> m (RelInfo 'MSSQL, Seq SchemaDependency) Source #
buildArrayRelationshipInfo :: MonadError QErr m => SourceConfig 'MSSQL -> SourceName -> HashMap (TableName 'MSSQL) (HashSet (ForeignKey 'MSSQL)) -> TableName 'MSSQL -> ArrRelDef 'MSSQL -> m (RelInfo 'MSSQL, Seq SchemaDependency) Source #
buildFunctionInfo :: MonadError QErr m => SourceName -> FunctionName 'MSSQL -> SystemDefined -> FunctionConfig 'MSSQL -> FunctionPermissionsMap -> RawFunctionInfo 'MSSQL -> Maybe Text -> NamingCase -> m (FunctionInfo 'MSSQL, SchemaDependency) Source #
updateColumnInEventTrigger :: TableName 'MSSQL -> Column 'MSSQL -> Column 'MSSQL -> TableName 'MSSQL -> EventTriggerConf 'MSSQL -> EventTriggerConf 'MSSQL Source #
parseCollectableType :: (MonadError QErr m, MonadReader r m, Has (ScalarTypeParsingContext 'MSSQL) r) => CollectableType (ColumnType 'MSSQL) -> Value -> m (PartialSQLExp 'MSSQL) Source #
postDropSourceHook :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m) => SourceConfig 'MSSQL -> TableEventTriggers 'MSSQL -> m () Source #
validateRelationship :: MonadError QErr m => TableCache 'MSSQL -> TableName 'MSSQL -> Either (ObjRelDef 'MSSQL) (ArrRelDef 'MSSQL) -> m () Source #
buildComputedFieldBooleanExp :: (MonadError QErr m, TableCoreInfoRM 'MSSQL m) => BoolExpResolver 'MSSQL m v -> BoolExpRHSParser 'MSSQL m v -> FieldInfoMap (FieldInfo 'MSSQL) -> FieldInfoMap (FieldInfo 'MSSQL) -> ComputedFieldInfo 'MSSQL -> Value -> m (AnnComputedFieldBoolExp 'MSSQL v) Source #
prepareCatalog :: forall (m :: Type -> Type). (MonadIO m, MonadBaseControl IO m) => SourceConfig 'MSSQL -> 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 'MSSQL] 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 'MSSQL) Source #
getTableInfo :: (CacheRM m, MetadataM m, MonadError QErr m, MonadBaseControl IO m, MonadIO m) => SourceName -> TableName 'MSSQL -> m (Maybe (SourceTableInfo 'MSSQL)) Source #
validateNativeQuery :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'MSSQL -> LogicalModelInfo 'MSSQL -> NativeQueryMetadata 'MSSQL -> m (InterpolatedQuery ArgumentName) Source #
validateStoredProcedure :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'MSSQL -> LogicalModelInfo 'MSSQL -> StoredProcedureMetadata 'MSSQL -> m () Source #
getStoredProcedureGraphqlName :: MonadError QErr m => FunctionName 'MSSQL -> StoredProcedureConfig -> m Name Source #
supportsBeingRemoteRelationshipTarget :: SourceConfig 'MSSQL -> Bool Source #