Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.Trek.Db
Contents
Synopsis
- apply :: InputGroup -> DB (Maybe OutputGroup)
- data InputMigration = InputMigration {
- inputAction :: DB ()
- inputVersion :: Version
- inputHash :: Binary Hash
- data OutputMigration = OutputMigration {}
- newtype GroupId = GroupId (Binary ByteString)
- type Version = UTCTime
- type Hash = ByteString
- type DB = DBT IO
- data OutputGroup = OutputGroup {}
- data InputGroup = InputGroup {}
- inputGroup :: NonEmpty InputMigration -> DB InputGroup
- type Time = UTCTime
- makeGroupHash :: UTCTime -> [InputMigration] -> Hash
Life cycle management
apply :: InputGroup -> DB (Maybe OutputGroup) Source #
Types
data InputMigration Source #
Constructors
InputMigration | |
Fields
|
Instances
ToRow InputMigration Source # | |
Defined in Database.Trek.Db Methods toRow :: InputMigration -> [Action] # |
data OutputMigration Source #
Instances
Constructors
GroupId (Binary ByteString) |
Instances
Eq GroupId Source # | |
Ord GroupId Source # | |
Show GroupId Source # | |
Generic GroupId Source # | |
FromRow GroupId Source # | |
Defined in Database.Trek.Db | |
FromField GroupId Source # | |
Defined in Database.Trek.Db Methods | |
ToRow GroupId Source # | |
Defined in Database.Trek.Db | |
ToField GroupId Source # | |
Defined in Database.Trek.Db | |
type Rep GroupId Source # | |
Defined in Database.Trek.Db type Rep GroupId = D1 (MetaData "GroupId" "Database.Trek.Db" "trek-db-0.1.0.0-Hw9qaaaf47I8pq3pxJIvP5" True) (C1 (MetaCons "GroupId" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Binary ByteString)))) |
type Hash = ByteString Source #
data OutputGroup Source #
Constructors
OutputGroup | |
Fields |
Instances
Eq OutputGroup Source # | |
Defined in Database.Trek.Db | |
Show OutputGroup Source # | |
Defined in Database.Trek.Db Methods showsPrec :: Int -> OutputGroup -> ShowS # show :: OutputGroup -> String # showList :: [OutputGroup] -> ShowS # |
data InputGroup Source #
Constructors
InputGroup | |
makeGroupHash :: UTCTime -> [InputMigration] -> Hash Source #