Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SQLiteMigration
- data family Method a :: *
- data family DBConnection a :: *
- data ChangeHistory = ChangeHistory {
- histId :: ChangeId
- histName :: ChangeName
- histDescription :: Maybe Description
- histTime :: UTCTime
- runMigrations :: Connection -> [Change SQLiteMigration] -> IO (Either String ())
- getChangeHistory :: Connection -> IO [ChangeHistory]
- getChangeNameHistory :: Connection -> IO [ChangeName]
Documentation
data SQLiteMigration Source #
Instances
Drifter SQLiteMigration Source # | |
Defined in Drifter.SQLite migrateSingle :: DBConnection SQLiteMigration -> Change SQLiteMigration -> IO (Either String ()) # | |
data Method SQLiteMigration Source # | |
Defined in Drifter.SQLite data Method SQLiteMigration
| |
data DBConnection SQLiteMigration Source # | |
Defined in Drifter.SQLite |
Instances
data Method SQLiteMigration # | |
Defined in Drifter.SQLite data Method SQLiteMigration
|
data family DBConnection a :: * #
Instances
data DBConnection SQLiteMigration # | |
Defined in Drifter.SQLite |
data ChangeHistory Source #
ChangeHistory | |
|
Instances
Eq ChangeHistory Source # | |
Defined in Drifter.SQLite (==) :: ChangeHistory -> ChangeHistory -> Bool # (/=) :: ChangeHistory -> ChangeHistory -> Bool # | |
Ord ChangeHistory Source # | |
Defined in Drifter.SQLite compare :: ChangeHistory -> ChangeHistory -> Ordering # (<) :: ChangeHistory -> ChangeHistory -> Bool # (<=) :: ChangeHistory -> ChangeHistory -> Bool # (>) :: ChangeHistory -> ChangeHistory -> Bool # (>=) :: ChangeHistory -> ChangeHistory -> Bool # max :: ChangeHistory -> ChangeHistory -> ChangeHistory # min :: ChangeHistory -> ChangeHistory -> ChangeHistory # | |
Show ChangeHistory Source # | |
Defined in Drifter.SQLite showsPrec :: Int -> ChangeHistory -> ShowS # show :: ChangeHistory -> String # showList :: [ChangeHistory] -> ShowS # | |
FromRow ChangeHistory Source # | |
Defined in Drifter.SQLite |
runMigrations :: Connection -> [Change SQLiteMigration] -> IO (Either String ()) Source #
Takes the list of all migrations, removes the ones that have
already run and runs them. Use this instead of migrate
.
getChangeHistory :: Connection -> IO [ChangeHistory] Source #
Get all changes from schema_migrations table for all the migrations that have previously run.
getChangeNameHistory :: Connection -> IO [ChangeName] Source #
Get just the names of all changes from schema_migrations for migrations that have previously run.