Documentation
¶
Index ¶
- func CleanUp(t testing.TB, wrapper Wrapper)
- func CleanUpBookEvents(wrapper Wrapper, bookID uuid.UUID) (rowsAffected int64, err error)
- func GetGreatestOccurredAtTimeFromDB(t testing.TB, wrapper Wrapper) time.Time
- func GetLatestBookIDFromDB(t testing.TB, wrapper Wrapper) uuid.UUID
- func GuardThatThereAreEnoughFixtureEventsInStore(wrapper Wrapper, expectedNumEvents int)
- func OptimizeDBWhileBenchmarking(wrapper Wrapper) error
- func TryCreateEventStoreWithTableName(t testing.TB, options ...Option) error
- type PGXPoolWrapper
- type SQLDBWrapper
- type SQLXWrapper
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpBookEvents ¶
Types ¶
type PGXPoolWrapper ¶
type PGXPoolWrapper struct {
// contains filtered or unexported fields
}
PGXPoolWrapper wraps pgxpool-based testing
func (*PGXPoolWrapper) Close ¶
func (e *PGXPoolWrapper) Close()
func (*PGXPoolWrapper) GetEventStore ¶
func (e *PGXPoolWrapper) GetEventStore() EventStore
type SQLDBWrapper ¶
type SQLDBWrapper struct {
// contains filtered or unexported fields
}
SQLDBWrapper wraps sql.DB-based testing
func (*SQLDBWrapper) Close ¶
func (e *SQLDBWrapper) Close()
func (*SQLDBWrapper) GetEventStore ¶
func (e *SQLDBWrapper) GetEventStore() EventStore
type SQLXWrapper ¶
type SQLXWrapper struct {
// contains filtered or unexported fields
}
SQLXWrapper wraps sqlx.DB-based testing
func (*SQLXWrapper) Close ¶
func (e *SQLXWrapper) Close()
func (*SQLXWrapper) GetEventStore ¶
func (e *SQLXWrapper) GetEventStore() EventStore
type Wrapper ¶
type Wrapper interface { GetEventStore() EventStore Close() }
Wrapper interface to abstract over different engine types
Click to show internal directories.
Click to hide internal directories.