Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data PersistanceError Source #
Instances
Exception PersistanceError Source # | |
Show PersistanceError Source # | |
Defined in DomainDriven.Persistance.Postgres.Types showsPrec :: Int -> PersistanceError -> ShowS # show :: PersistanceError -> String # showList :: [PersistanceError] -> ShowS # | |
Eq PersistanceError Source # | |
Defined in DomainDriven.Persistance.Postgres.Types (==) :: PersistanceError -> PersistanceError -> Bool # (/=) :: PersistanceError -> PersistanceError -> Bool # |
type EventTableBaseName = String Source #
type EventVersion = Int Source #
type EventTableName = String Source #
type PreviousEventTableName = String Source #
type EventMigration = PreviousEventTableName -> EventTableName -> Connection -> IO () Source #
newtype EventNumber Source #
Instances
data NumberedModel m Source #
NumberedModel | |
|
Instances
Generic (NumberedModel m) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep (NumberedModel m) :: Type -> Type # from :: NumberedModel m -> Rep (NumberedModel m) x # to :: Rep (NumberedModel m) x -> NumberedModel m # | |
Show m => Show (NumberedModel m) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types showsPrec :: Int -> NumberedModel m -> ShowS # show :: NumberedModel m -> String # showList :: [NumberedModel m] -> ShowS # | |
type Rep (NumberedModel m) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep (NumberedModel m) = D1 ('MetaData "NumberedModel" "DomainDriven.Persistance.Postgres.Types" "domaindriven-core-0.5.0-7rYqBJZZqKF59TNQHBa9rT" 'False) (C1 ('MetaCons "NumberedModel" 'PrefixI 'True) (S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 m) :*: S1 ('MetaSel ('Just "eventNumber") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EventNumber))) |
data NumberedEvent e Source #
NumberedEvent | |
|
Instances
Generic (NumberedEvent e) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep (NumberedEvent e) :: Type -> Type # from :: NumberedEvent e -> Rep (NumberedEvent e) x # to :: Rep (NumberedEvent e) x -> NumberedEvent e # | |
Show e => Show (NumberedEvent e) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types showsPrec :: Int -> NumberedEvent e -> ShowS # show :: NumberedEvent e -> String # showList :: [NumberedEvent e] -> ShowS # | |
type Rep (NumberedEvent e) Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep (NumberedEvent e) = D1 ('MetaData "NumberedEvent" "DomainDriven.Persistance.Postgres.Types" "domaindriven-core-0.5.0-7rYqBJZZqKF59TNQHBa9rT" 'False) (C1 ('MetaCons "NumberedEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "event") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Stored e)) :*: S1 ('MetaSel ('Just "eventNumber") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EventNumber))) |
data OngoingTransaction Source #
Instances
Generic OngoingTransaction Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep OngoingTransaction :: Type -> Type # from :: OngoingTransaction -> Rep OngoingTransaction x # to :: Rep OngoingTransaction x -> OngoingTransaction # | |
type Rep OngoingTransaction Source # | |
Defined in DomainDriven.Persistance.Postgres.Types type Rep OngoingTransaction = D1 ('MetaData "OngoingTransaction" "DomainDriven.Persistance.Postgres.Types" "domaindriven-core-0.5.0-7rYqBJZZqKF59TNQHBa9rT" 'False) (C1 ('MetaCons "OngoingTransaction" 'PrefixI 'True) (S1 ('MetaSel ('Just "connection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Connection) :*: S1 ('MetaSel ('Just "localPool") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (LocalPool Connection)))) |
data EventRowOut Source #
EventRowOut | |
|
Instances
fromEventRow :: (FromJSON e, MonadThrow m) => EventRowOut -> m (Stored e, EventNumber) Source #