Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Backend = Backend {
- getBootstrapMigration :: IO Migration
- isBootstrapped :: IO Bool
- applyMigration :: Migration -> IO ()
- revertMigration :: Migration -> IO ()
- getMigrations :: IO [Text]
- commitBackend :: IO ()
- rollbackBackend :: IO ()
- disconnectBackend :: IO ()
- rootMigrationName :: Text
Documentation
A Backend represents a database engine backend such as MySQL or SQLite. A Backend supplies relatively low-level functions for inspecting the backend's state, applying migrations, and reverting migrations. A Backend also supplies the migration necessary to "bootstrap" a backend so that it can track which migrations are installed.
Backend | |
|
rootMigrationName :: Text Source #
Backend instances should use this as the name of the migration returned by getBootstrapMigration; this migration is special because it cannot be reverted.