| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Relocant.Applied
Description
This module deals with applied migrations and their records in the DB.
Synopsis
- data Applied = Applied {}
- getApplied :: Table -> Connection -> IO [Applied]
- getAppliedByID :: ID -> Table -> Connection -> IO (Maybe Applied)
- record :: Applied -> Table -> Connection -> IO ()
- deleteAll :: Table -> Connection -> IO ()
- deleteByID :: ID -> Table -> Connection -> IO Bool
Documentation
An applied migration. Generally, it's created be either running a
 migration Script with apply or getting the records
 from the DB with getApplied or getAppliedByID.
Constructors
| Applied | |
getApplied :: Table -> Connection -> IO [Applied] Source #
Retrieve all Applied migrations' records from the DB.
getAppliedByID :: ID -> Table -> Connection -> IO (Maybe Applied) Source #
Retrieve the specific Applied migration's record from the DB.
deleteAll :: Table -> Connection -> IO () Source #
Delete all Applied migrations' records from the DB.
deleteByID :: ID -> Table -> Connection -> IO Bool Source #
Delete the specific Applied migration's record from the DB.