Documentation ¶
Index ¶
- func ClearAllTables(pool *pgxpool.Pool)
- func ClearAllTablesDeprecated(pool *pgxpool.Pool)
- func ClearAnalysisTable(pool *pgxpool.Pool)
- func ClearAnalysisTableDeprecated(pool *pgxpool.Pool)
- func ClearCarTable(pool *pgxpool.Pool)
- func ClearCarTableDeprecated(pool *pgxpool.Pool)
- func ClearDriverTable(pool *pgxpool.Pool)
- func ClearDriverTableDeprecated(pool *pgxpool.Pool)
- func ClearEventTable(pool *pgxpool.Pool)
- func ClearEventTableDeprecated(pool *pgxpool.Pool)
- func ClearSpeedmapTable(pool *pgxpool.Pool)
- func ClearSpeedmapTableDeprecated(pool *pgxpool.Pool)
- func ClearStateDataTable(pool *pgxpool.Pool)
- func ClearTrackTable(pool *pgxpool.Pool)
- func ClearTrackTableDeprecated(pool *pgxpool.Pool)
- func ClearWampDataTableDeprecated(pool *pgxpool.Pool)
- func SetupExternalTestDb() *pgxpool.Pool
- func SetupTestDb() *pgxpool.Pool
- func SetupTestDbDeprecated() *pgxpool.Pool
- type PostgresContainer
- type PostgresContainerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAllTables ¶
func ClearAllTablesDeprecated ¶ added in v0.12.0
func ClearAnalysisTable ¶
func ClearAnalysisTableDeprecated ¶ added in v0.12.0
func ClearCarTable ¶
func ClearCarTableDeprecated ¶ added in v0.12.0
func ClearDriverTable ¶
func ClearDriverTableDeprecated ¶ added in v0.12.0
func ClearEventTable ¶
func ClearEventTableDeprecated ¶ added in v0.12.0
func ClearSpeedmapTable ¶
func ClearSpeedmapTableDeprecated ¶ added in v0.12.0
func ClearStateDataTable ¶ added in v0.12.0
func ClearTrackTable ¶
func ClearTrackTableDeprecated ¶ added in v0.12.0
func ClearWampDataTableDeprecated ¶ added in v0.12.0
func SetupExternalTestDb ¶ added in v0.12.0
create a pg connection pool for the local iracelog testdatabase
func SetupTestDb ¶
create a pg connection pool for the iracelog testdatabase
func SetupTestDbDeprecated ¶ added in v0.12.0
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.