| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Drifter.PostgreSQL
Synopsis
- data PGMigration
- data family Method a :: *
- data family DBConnection a :: *
- data ChangeHistory = ChangeHistory {
- histId :: ChangeId
- histName :: ChangeName
- histDescription :: Maybe Description
- histTime :: UTCTime
- runMigrations :: Connection -> [Change PGMigration] -> IO (Either String ())
- getChangeHistory :: Connection -> IO [ChangeHistory]
- getChangeNameHistory :: Connection -> IO [ChangeName]
Documentation
data PGMigration #
Instances
| Drifter PGMigration # | |
Defined in Drifter.PostgreSQL Methods migrateSingle :: DBConnection PGMigration -> Change PGMigration -> IO (Either String ()) # | |
| data Method PGMigration # | |
Defined in Drifter.PostgreSQL | |
| data DBConnection PGMigration # | |
Defined in Drifter.PostgreSQL | |
Instances
| data Method PGMigration # | |
Defined in Drifter.PostgreSQL | |
data family DBConnection a :: * #
Instances
| data DBConnection PGMigration # | |
Defined in Drifter.PostgreSQL | |
data ChangeHistory #
Constructors
| ChangeHistory | |
Fields
| |
Instances
| Eq ChangeHistory # | |
Defined in Drifter.PostgreSQL Methods (==) :: ChangeHistory -> ChangeHistory -> Bool # (/=) :: ChangeHistory -> ChangeHistory -> Bool # | |
| Ord ChangeHistory # | |
Defined in Drifter.PostgreSQL Methods 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 # | |
Defined in Drifter.PostgreSQL Methods showsPrec :: Int -> ChangeHistory -> ShowS # show :: ChangeHistory -> String # showList :: [ChangeHistory] -> ShowS # | |
| FromRow ChangeHistory # | |
Defined in Drifter.PostgreSQL Methods | |
runMigrations :: Connection -> [Change PGMigration] -> IO (Either String ()) #
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] #
Get all changes from schema_migrations table for all the migrations that have previously run.
getChangeNameHistory :: Connection -> IO [ChangeName] #
Get just the names of all changes from schema_migrations for migrations that have previously run.