beam-migrate-0.5.0.0: SQL DDL support and migrations support library for Beam

Safe HaskellNone
LanguageHaskell2010

Database.Beam.Migrate.Log

Description

Contains a schema for beam migration tools. Used by the CLI and the managed migrations support here.

Documentation

data LogEntryT f Source #

Constructors

LogEntry 
Instances
Table LogEntryT Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

data PrimaryKey LogEntryT column :: Type #

Methods

primaryKey :: LogEntryT column -> PrimaryKey LogEntryT column #

Beamable LogEntryT Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Methods

zipBeamFieldsM :: Applicative m => (forall a. Columnar' f a -> Columnar' g a -> m (Columnar' h a)) -> LogEntryT f -> LogEntryT g -> m (LogEntryT h) #

tblSkeleton :: TableSkeleton LogEntryT #

Show (LogEntryT Identity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Generic (LogEntryT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

type Rep (LogEntryT f) :: Type -> Type #

Methods

from :: LogEntryT f -> Rep (LogEntryT f) x #

to :: Rep (LogEntryT f) x -> LogEntryT f #

Beamable (PrimaryKey LogEntryT) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Show (PrimaryKey LogEntryT Identity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Generic (PrimaryKey LogEntryT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

type Rep (PrimaryKey LogEntryT f) :: Type -> Type #

data PrimaryKey LogEntryT f Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (LogEntryT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (LogEntryT f) = D1 (MetaData "LogEntryT" "Database.Beam.Migrate.Log" "beam-migrate-0.5.0.0-Amkz3hN0o3M2sLj2AmgBqU" False) (C1 (MetaCons "LogEntry" PrefixI True) (S1 (MetaSel (Just "_logEntryId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f Int32)) :*: (S1 (MetaSel (Just "_logEntryCommitId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f Text)) :*: S1 (MetaSel (Just "_logEntryDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f LocalTime)))))
type Rep (PrimaryKey LogEntryT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (PrimaryKey LogEntryT f) = D1 (MetaData "PrimaryKey" "Database.Beam.Migrate.Log" "beam-migrate-0.5.0.0-Amkz3hN0o3M2sLj2AmgBqU" False) (C1 (MetaCons "LogEntryKey" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f Int32))))

newtype BeamMigrateVersionT f Source #

Constructors

BeamMigrateVersion 
Instances
Table BeamMigrateVersionT Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

data PrimaryKey BeamMigrateVersionT column :: Type #

Beamable BeamMigrateVersionT Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Show (BeamMigrateVersionT Identity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Generic (BeamMigrateVersionT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

type Rep (BeamMigrateVersionT f) :: Type -> Type #

Beamable (PrimaryKey BeamMigrateVersionT) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Show (PrimaryKey BeamMigrateVersionT Identity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Generic (PrimaryKey BeamMigrateVersionT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

type Rep (PrimaryKey BeamMigrateVersionT f) :: Type -> Type #

data PrimaryKey BeamMigrateVersionT f Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (BeamMigrateVersionT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (BeamMigrateVersionT f) = D1 (MetaData "BeamMigrateVersionT" "Database.Beam.Migrate.Log" "beam-migrate-0.5.0.0-Amkz3hN0o3M2sLj2AmgBqU" True) (C1 (MetaCons "BeamMigrateVersion" PrefixI True) (S1 (MetaSel (Just "_beamMigrateVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f Int32))))
type Rep (PrimaryKey BeamMigrateVersionT f) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (PrimaryKey BeamMigrateVersionT f) = D1 (MetaData "PrimaryKey" "Database.Beam.Migrate.Log" "beam-migrate-0.5.0.0-Amkz3hN0o3M2sLj2AmgBqU" False) (C1 (MetaCons "BeamMigrateVersionKey" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (C f Int32))))

data BeamMigrateDb entity Source #

Instances
Database be BeamMigrateDb Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Methods

zipTables :: Applicative m => Proxy be -> (forall tbl. (IsDatabaseEntity be tbl, DatabaseEntityRegularRequirements be tbl) => f tbl -> g tbl -> m (h tbl)) -> BeamMigrateDb f -> BeamMigrateDb g -> m (BeamMigrateDb h) #

Generic (BeamMigrateDb entity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

Associated Types

type Rep (BeamMigrateDb entity) :: Type -> Type #

Methods

from :: BeamMigrateDb entity -> Rep (BeamMigrateDb entity) x #

to :: Rep (BeamMigrateDb entity) x -> BeamMigrateDb entity #

type Rep (BeamMigrateDb entity) Source # 
Instance details

Defined in Database.Beam.Migrate.Log

type Rep (BeamMigrateDb entity) = D1 (MetaData "BeamMigrateDb" "Database.Beam.Migrate.Log" "beam-migrate-0.5.0.0-Amkz3hN0o3M2sLj2AmgBqU" False) (C1 (MetaCons "BeamMigrateDb" PrefixI True) (S1 (MetaSel (Just "_beamMigrateVersionTbl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (entity (TableEntity BeamMigrateVersionT))) :*: S1 (MetaSel (Just "_beamMigrateLogEntries") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (entity (TableEntity LogEntryT)))))