Hoogle Search
Within LTS Haskell 22.42 (ghc-9.6.6)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
runMigration :: MonadIO m => Migration -> ReaderT SqlBackend m ()persistent Database.Persist.Sql.Migration Runs a migration. If the migration fails to parse or if any of the migrations are unsafe, then this throws a PersistUnsafeMigrationException.
runMigration :: MonadSqlQuery m => Migration -> m ()persistent-mtl Database.Persist.Sql.Shim The lifted version of runMigration
runMigrationQuiet :: MonadIO m => Migration -> ReaderT SqlBackend m [Text]persistent Database.Persist.Sql.Migration Same as runMigration, but does not report the individual migrations on stderr. Instead it returns a list of the executed SQL commands. This is a safer/more robust alternative to runMigrationSilent, but may be less silent for some persistent implementations, most notably persistent-postgresql
runMigrationSilent :: MonadUnliftIO m => Migration -> ReaderT SqlBackend m [Text]persistent Database.Persist.Sql.Migration Same as runMigration, but returns a list of the SQL commands executed instead of printing them to stderr. This function silences the migration by remapping stderr. As a result, it is not thread-safe and can clobber output from other parts of the program. This implementation method was chosen to also silence postgresql migration output on stderr, but is not recommended!
runMigrationUnsafe :: MonadIO m => Migration -> ReaderT SqlBackend m ()persistent Database.Persist.Sql.Migration Like runMigration, but this will perform the unsafe database migrations instead of erroring out.
runMigrationUnsafeQuiet :: (HasCallStack, MonadIO m) => Migration -> ReaderT SqlBackend m [Text]persistent Database.Persist.Sql.Migration Same as runMigrationUnsafe, but returns a list of the SQL commands executed instead of printing them to stderr.
runMigrationQuiet :: MonadSqlQuery m => Migration -> m [Text]persistent-mtl Database.Persist.Sql.Shim The lifted version of runMigrationQuiet
runMigrationSilent :: MonadSqlQuery m => Migration -> m [Text]persistent-mtl Database.Persist.Sql.Shim The lifted version of runMigrationSilent
runMigrationUnsafe :: MonadSqlQuery m => Migration -> m ()persistent-mtl Database.Persist.Sql.Shim The lifted version of runMigrationUnsafe
runMigrationUnsafeQuiet :: (HasCallStack, MonadSqlQuery m) => Migration -> m [Text]persistent-mtl Database.Persist.Sql.Shim The lifted version of runMigrationUnsafeQuiet
Page 1 of 2 | Next