drifter-sqlite-0.1.0.0: SQLite support for the drifter schema migraiton tool

Safe HaskellNone
LanguageHaskell2010

Drifter.SQLite

Synopsis

Documentation

data family Method a :: * #

data family DBConnection a :: * #

Instances
data DBConnection SQLiteMigration # 
Instance details

Defined in Drifter.SQLite

data DBConnection SQLiteMigration = DBConnection SQLiteMigrationConnection

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.