Documentation ¶
Index ¶
- func ClearAllTables(pool *pgxpool.Pool)
- func ClearAnalysisTable(pool *pgxpool.Pool)
- func ClearCarTable(pool *pgxpool.Pool)
- func ClearDriverTable(pool *pgxpool.Pool)
- func ClearEventTable(pool *pgxpool.Pool)
- func ClearSpeedmapTable(pool *pgxpool.Pool)
- func ClearTrackTable(pool *pgxpool.Pool)
- func ClearWampDataTable(pool *pgxpool.Pool)
- func SetupTestDb() *pgxpool.Pool
- type PostgresContainer
- type PostgresContainerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAllTables ¶
func ClearAnalysisTable ¶
func ClearCarTable ¶
func ClearDriverTable ¶
func ClearEventTable ¶
func ClearSpeedmapTable ¶
func ClearTrackTable ¶
func ClearWampDataTable ¶
func SetupTestDb ¶
create a pg connection pool for the iracelog testdatabase
Types ¶
type PostgresContainer ¶
type PostgresContainer struct {
testcontainers.Container
}
PostgresContainer represents the postgres container type used in the module
func SetupPostgres ¶
func SetupPostgres(ctx context.Context, opts ...PostgresContainerOption) ( *PostgresContainer, error, )
setupPostgres creates an instance of the postgres container type
type PostgresContainerOption ¶
type PostgresContainerOption func(req *testcontainers.ContainerRequest)
func WithInitialDatabase ¶
func WithInitialDatabase(user, password, dbName string) PostgresContainerOption
func WithName ¶
func WithName(containerName string) PostgresContainerOption
func WithPort ¶
func WithPort(port string) PostgresContainerOption
func WithWaitStrategy ¶
func WithWaitStrategy(strategies ...wait.Strategy) PostgresContainerOption
Click to show internal directories.
Click to hide internal directories.