Safe Haskell | None |
---|
Database.Schema.Migrations.Filesystem
Description
This module provides a type for interacting with a
filesystem-backed MigrationStore
.
- data FilesystemStore = FSStore {}
- migrationFromFile :: FilesystemStore -> String -> IO (Either String Migration)
- migrationFromPath :: FilePath -> IO (Either String Migration)
Documentation
data FilesystemStore Source
Instances
MonadIO m => MigrationStore FilesystemStore m |
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.