Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class HasPostgreConnection a where Source #
postgreConnection :: Lens' a Pool Source #
ensureMigratonSchema :: (MonadIO m, MonadState s m, HasPostgreConnection s) => m () Source #
getAppliedMigrations :: (MonadIO m, MonadState s m, HasPostgreConnection s) => m MigrationTable Source #
applyMigration :: (MonadIO m, MonadState s m, HasPostgreConnection s) => Migration -> m () Source #
applyMigrations :: (MonadIO m, MonadState s m, HasPostgreConnection s) => [Migration] -> m () Source #
runTests :: (MonadIO m, MonadState s m, HasPostgreConnection s) => [Test] -> m () Source #
runTest :: (MonadIO m, MonadState s m, HasPostgreConnection s) => Test -> m () Source #