test: example for eventstore

This commit is contained in:
adlerhurst
2020-10-23 16:16:46 +02:00
parent b6ed7a396c
commit dfb8c266d7
6 changed files with 483 additions and 64 deletions
@@ -122,6 +122,10 @@ type CRDB struct {
client *sql.DB
}
func NewCRDB(client *sql.DB) *CRDB {
return &CRDB{client}
}
func (db *CRDB) Health(ctx context.Context) error { return db.client.Ping() }
// Push adds all events to the eventstreams of the aggregates.