Safe Haskell | None |
---|---|
Language | Haskell2010 |
- dynamoDBEventStore :: DynamoDBEventStoreConfig serialized -> EventStore serialized AWS
- data DynamoDBEventStoreConfig serialized = DynamoDBEventStoreConfig {
- dynamoDBEventStoreConfigTableName :: Text
- dynamoDBEventStoreConfigUUIDAttributeName :: Text
- dynamoDBEventStoreConfigVersionAttributeName :: Text
- dynamoDBEventStoreConfigEventAttributeName :: Text
- dynamoDBEventStoreConfigSerializedToValue :: serialized -> AttributeValue
- dynamoDBEventStoreConfigValueToSerialized :: AttributeValue -> serialized
- defaultDynamoDBEventStoreConfig :: DynamoDBEventStoreConfig Value
- initializeDynamoDBEventStore :: MonadAWS m => DynamoDBEventStoreConfig serialized -> ProvisionedThroughput -> m ()
- deleteDynamoDBEventStoreTable :: MonadAWS m => DynamoDBEventStoreConfig serialized -> m ()
- runAWSIO :: AWS a -> IO a
Documentation
dynamoDBEventStore :: DynamoDBEventStoreConfig serialized -> EventStore serialized AWS Source #
An EventStore
that uses AWS DynamoDB as the storage backend. Use a
DynamoDBEventStoreConfig
to configure this event store.
data DynamoDBEventStoreConfig serialized Source #
initializeDynamoDBEventStore :: MonadAWS m => DynamoDBEventStoreConfig serialized -> ProvisionedThroughput -> m () Source #
Helpful function to create the events table. If a table already exists with the same name, then this function just uses that one. Note, there are no magic migrations going on here, trust this function at your own risk.
deleteDynamoDBEventStoreTable :: MonadAWS m => DynamoDBEventStoreConfig serialized -> m () Source #
Convenience function to drop the event store table. Mainly used for testing this library.