Safe Haskell | Safe-Infered |
---|
Documentation
type MigrationId = TextSource
Context | |
|
type MigrationResultT = EitherT ContextSource
class Monad m => MigrateDatabase m c whereSource
initialize :: c -> m ()Source
runMigrations :: c -> (Migration -> Ddl) -> [Migration] -> MigrationResultT m [MigrationId]Source
getMigrations :: c -> m [MigrationId]Source
pick :: [Migration] -> [MigrationId] -> [Migration]Source
latest :: MigrateDatabase m c => c -> [Migration] -> MigrationResultT m [MigrationId]Source
hGetContents' :: Handle -> IO StringSource