mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-08 15:15:12 +00:00
test: example for eventstore
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user