| Safe Haskell | Safe-Infered |
|---|
Database.Migrate.Core
Documentation
data MigrationId Source
Constructors
| MigrationId | |
Constructors
| Migration | |
Constructors
| Context | |
Fields
| |
type MigrationResultT = EitherT ContextSource
class Monad m => MigrateDatabase m c whereSource
Methods
initialize :: c -> m ()Source
runMigrations :: c -> (Migration -> Ddl) -> [Migration] -> MigrationResultT m [MigrationId]Source
getMigrations :: c -> m [MigrationId]Source
Instances
pick :: [Migration] -> [MigrationId] -> [Migration]Source
latest :: MigrateDatabase m c => c -> [Migration] -> MigrationResultT m [MigrationId]Source
hGetContents' :: Handle -> IO StringSource