Safe Haskell | None |
---|---|
Language | Haskell2010 |
MSSQL Source
Implements the Source related methods of the
BackendMetadata
type class
for the MSSQL backend, which provides an interface for identifying the
MSSQL database instance (source) and manipulate it.
The actual instance is defined in Hasura.Backends.MSSQL.Instances.Metadata.
Synopsis
- resolveSourceConfig :: (MonadIO m, MonadResolveSource m) => Logger Hasura -> SourceName -> MSSQLConnConfiguration -> BackendSourceKind 'MSSQL -> BackendConfig 'MSSQL -> Environment -> manager -> m (Either QErr MSSQLSourceConfig)
- resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> SourceTypeCustomization -> m (Either QErr (ResolvedSource 'MSSQL))
- postDropSourceHook :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> TableEventTriggers 'MSSQL -> m ()
- doesSchemaExist :: MonadMSSQLTx m => SchemaName -> m Bool
- doesTableExist :: MonadMSSQLTx m => TableName -> m Bool
- prepareCatalog :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> ExceptT QErr m RecreateEventTriggers
- dropSourceCatalog :: MonadMSSQLTx m => m ()
- migrateSourceCatalog :: MonadMSSQLTx m => m RecreateEventTriggers
- migrateSourceCatalogFrom :: MonadMSSQLTx m => SourceCatalogVersion -> m RecreateEventTriggers
- sourceMigrations :: [(SourceCatalogVersion, TxE QErr [Text])]
Documentation
resolveSourceConfig :: (MonadIO m, MonadResolveSource m) => Logger Hasura -> SourceName -> MSSQLConnConfiguration -> BackendSourceKind 'MSSQL -> BackendConfig 'MSSQL -> Environment -> manager -> m (Either QErr MSSQLSourceConfig) Source #
resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> SourceTypeCustomization -> m (Either QErr (ResolvedSource 'MSSQL)) Source #
postDropSourceHook :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> TableEventTriggers 'MSSQL -> m () Source #
doesSchemaExist :: MonadMSSQLTx m => SchemaName -> m Bool Source #
doesTableExist :: MonadMSSQLTx m => TableName -> m Bool Source #
prepareCatalog :: (MonadIO m, MonadBaseControl IO m) => MSSQLSourceConfig -> ExceptT QErr m RecreateEventTriggers Source #
Initialise catalog tables for a source, including those required by the event delivery subsystem.
dropSourceCatalog :: MonadMSSQLTx m => m () Source #
migrateSourceCatalogFrom :: MonadMSSQLTx m => SourceCatalogVersion -> m RecreateEventTriggers Source #
sourceMigrations :: [(SourceCatalogVersion, TxE QErr [Text])] Source #