sqel-0.0.1.0: Guided derivation for Hasql statements
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sqel.Migration.Table

Documentation

class TableChanges old new where Source #

Methods

tableChanges :: Dd old -> Dd new -> MigrationActions ext Source #

Instances

Instances details
(DdlTypes 'True old (oldTable ': oldTypes), DdlTypes 'True new (newTable ': newTypes), TypeChanges oldTypes newTypes, TableChange oldTable newTable) => TableChanges old new Source # 
Instance details

Defined in Sqel.Migration.Table

Methods

tableChanges :: Dd old -> Dd new -> MigrationActions ext Source #

class MigrationTables m old new where Source #

Methods

withMigrationTables :: MigrationActions ext -> Dd old -> Dd new -> Migration ('Mig (DdType old) (DdType new) m ext) Source #

Instances

Instances details
(ReifyDd old, ReifyDd new) => MigrationTables m old new Source # 
Instance details

Defined in Sqel.Migration.Table

Methods

withMigrationTables :: MigrationActions ext -> Dd old -> Dd new -> Migration ('Mig (DdType old) (DdType new) m ext) Source #

class AutoMigration old new where Source #

Methods

autoMigration :: Dd old -> Dd new -> Migration ('Mig (DdType old) (DdType new) m Void) Source #

Instances

Instances details
(TableChanges old new, ReifyDd old, ReifyDd new) => AutoMigration old new Source # 
Instance details

Defined in Sqel.Migration.Table

Methods

autoMigration :: forall (m :: Type -> Type). Dd old -> Dd new -> Migration ('Mig (DdType old) (DdType new) m Void) Source #

migrateAuto :: AutoMigration old new => Dd old -> Dd new -> Migration ('Mig (DdType old) (DdType new) m Void) Source #