dbmigrations-0.7: An implementation of relational database "migrations"

Safe HaskellNone

Database.Schema.Migrations.Filesystem

Description

This module provides a type for interacting with a filesystem-backed MigrationStore.

Synopsis

Documentation

migrationFromFile :: FilesystemStore -> String -> IO (Either String Migration)Source

Given a store and migration name, read and parse the associated migration and return the migration if successful. Otherwise return a parsing error message.

migrationFromPath :: FilePath -> IO (Either String Migration)Source

Given a filesystem path, read and parse the file as a migration return the Migration if successful. Otherwise return a parsing error message.