Hoogle Search

Within LTS Haskell 22.21 (ghc-9.6.5)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. 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.

  2. runMigration :: MonadSqlQuery m => Migration -> m ()

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of runMigration

  3. 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

  4. 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!

  5. 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.

  6. 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.

  7. runMigrationQuiet :: MonadSqlQuery m => Migration -> m [Text]

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of runMigrationQuiet

  8. runMigrationSilent :: MonadSqlQuery m => Migration -> m [Text]

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of runMigrationSilent

  9. runMigrationUnsafe :: MonadSqlQuery m => Migration -> m ()

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of runMigrationUnsafe

  10. runMigrationUnsafeQuiet :: (HasCallStack, MonadSqlQuery m) => Migration -> m [Text]

    persistent-mtl Database.Persist.Sql.Shim

    The lifted version of runMigrationUnsafeQuiet

Page 1 of 2 | Next