-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Database versioning and migration (experimental)
--
-- A database versioning and migration library.
--
-- Note: This library is under heavy development, currently the
-- PostgreSQL implementation is functional, but expected to change. It is
-- intended that a type safe migration api, command line tools and MySql
-- support be added before this library will be considered stable.
@package database-migrate
@version 0.2.0
module Database.Migrate.Migration
type MigrationId = Text
data Change
Ddl :: Text -> Change
DdlFile :: FilePath -> Change
Dud :: Text -> Change
NoOp :: Change
data Migration
Migration :: MigrationId -> Change -> Change -> Migration
_migrationId :: Migration -> MigrationId
_upChange :: Migration -> Change
_downChange :: Migration -> Change
upChange :: Lens' Migration Change
migrationId :: Lens' Migration MigrationId
downChange :: Lens' Migration Change
instance Show Change
instance Eq Change
module Database.Migrate.PostgreSQL
psqlMain :: IO ()
migrate :: DbName -> Connection -> FilePath -> [Migration] -> IO ()
module Database.Migrate.Migration.Ddl
migration :: MigrationId -> Text -> Text -> Migration
up :: MigrationId -> Text -> Migration
down :: MigrationId -> Text -> Migration
module Database.Migrate.Migration.File
migration :: MigrationId -> FilePath -> FilePath -> Migration
up :: MigrationId -> FilePath -> Migration
down :: MigrationId -> FilePath -> Migration
module Database.Migrate.Migration.FileStandard
migration :: MigrationId -> FilePath -> Migration
up :: MigrationId -> FilePath -> Migration
down :: MigrationId -> FilePath -> Migration
module Database.Migrate.Migration.FileInferred
migration :: FilePath -> Migration
up :: FilePath -> Migration
down :: FilePath -> Migration
directory :: FilePath -> IO (Either Text [Migration])
module Database.Migrate.Migration.Directory
migration :: FilePath -> IO (Either Text [Migration])
-- | A library to assist with managing database versioning and migration.
--
-- Note: This library is under heavy development, currently the
-- PostgreSQL implementation is functional, but expected to change. It is
-- intended that a type safe migration api, command line tools and MySql
-- support be added before this library will be considered stable.
module Database.Migrate