dbmigrations-2.1.0: An implementation of relational database "migrations"
Safe HaskellNone
LanguageHaskell2010

Database.Schema.Migrations.Filesystem

Description

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

Synopsis

Documentation

migrationFromFile :: FilesystemStoreSettings -> Text -> 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.