tcpostgres

package
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAllTables

func ClearAllTables(pool *pgxpool.Pool)

func ClearAllTablesDeprecated added in v0.12.0

func ClearAllTablesDeprecated(pool *pgxpool.Pool)

func ClearAnalysisTable

func ClearAnalysisTable(pool *pgxpool.Pool)

func ClearAnalysisTableDeprecated added in v0.12.0

func ClearAnalysisTableDeprecated(pool *pgxpool.Pool)

func ClearCarTable

func ClearCarTable(pool *pgxpool.Pool)

func ClearCarTableDeprecated added in v0.12.0

func ClearCarTableDeprecated(pool *pgxpool.Pool)

func ClearDriverTable

func ClearDriverTable(pool *pgxpool.Pool)

func ClearDriverTableDeprecated added in v0.12.0

func ClearDriverTableDeprecated(pool *pgxpool.Pool)

func ClearEventTable

func ClearEventTable(pool *pgxpool.Pool)

func ClearEventTableDeprecated added in v0.12.0

func ClearEventTableDeprecated(pool *pgxpool.Pool)

func ClearSpeedmapTable

func ClearSpeedmapTable(pool *pgxpool.Pool)

func ClearSpeedmapTableDeprecated added in v0.12.0

func ClearSpeedmapTableDeprecated(pool *pgxpool.Pool)

func ClearStateDataTable added in v0.12.0

func ClearStateDataTable(pool *pgxpool.Pool)

func ClearTrackTable

func ClearTrackTable(pool *pgxpool.Pool)

func ClearTrackTableDeprecated added in v0.12.0

func ClearTrackTableDeprecated(pool *pgxpool.Pool)

func ClearWampDataTableDeprecated added in v0.12.0

func ClearWampDataTableDeprecated(pool *pgxpool.Pool)

func SetupExternalTestDb added in v0.12.0

func SetupExternalTestDb() *pgxpool.Pool

create a pg connection pool for the local iracelog testdatabase

func SetupTestDb

func SetupTestDb() *pgxpool.Pool

create a pg connection pool for the iracelog testdatabase

func SetupTestDbDeprecated added in v0.12.0

func SetupTestDbDeprecated() *pgxpool.Pool

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL