Documentation ¶
Index ¶
- func CreateMockData(ctx context.Context, tx repository.Transactable, videos model.Videos) error
- func NewTestTransactable(dbClient database.Client) repository.Transactable
- func SetupRepo(ctx context.Context) setupTx
- func ShouldRollback(ctx context.Context) bool
- func WithRollbackFlag(ctx context.Context, rollback bool) context.Context
- type PostgresContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMockData ¶
func CreateMockData(ctx context.Context, tx repository.Transactable, videos model.Videos) error
func NewTestTransactable ¶
func NewTestTransactable( dbClient database.Client, ) repository.Transactable
NewTestTransactable creates a new Transactable instance.
func ShouldRollback ¶
ShouldRollback checks if the context contains a rollback flag
Types ¶
type PostgresContainer ¶
type PostgresContainer struct {
*postgres.PostgresContainer
}
func SetupPostgresContainer ¶
func SetupPostgresContainer(ctx context.Context) (*PostgresContainer, error)
Click to show internal directories.
Click to hide internal directories.