Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module deals with migrations that haven't yet been applied.
Documentation
A migration script. Most users would get them by running readScripts
,
but those wanting a more fine-grained control would use readScript
.
readScripts :: FilePath -> IO [Script] Source #
Read migration Script
s from a directory. It only tries to read paths
ending with the .sql extension and doesn't recurse into subdirectories.
Note: the directory must exist
readScript :: FilePath -> IO Script Source #
Read migration Script
s from a file. Useful when you need a more fine-grained
control over which paths are read then what readScripts
provides.