Safe Haskell | None |
---|---|
Language | Haskell2010 |
Migrations support based on migrant-core
.
Synopsis
- module Database.Migrant.Driver.Class
- migrate :: [MigrationName] -> (MigrationName -> SQLite ()) -> (MigrationName -> SQLite ()) -> SQLite ()
Documentation
migrate :: [MigrationName] -> (MigrationName -> SQLite ()) -> (MigrationName -> SQLite ()) -> SQLite () Source #
Execute a migration against the database.
A wrapper around migrant's migrate
for SQLite.
Orphan instances
Driver Database Source # | |
withTransaction :: (Database -> IO a) -> Database -> IO a # initMigrations :: Database -> IO () # markUp :: MigrationName -> Database -> IO () # markDown :: MigrationName -> Database -> IO () # getMigrations :: Database -> IO [MigrationName] # |