Versions in this module Expand all Collapse all v0 v0.10.0 Sep 14, 2024 Changes in this version + func WithConfigFile(cfg string) testcontainers.CustomizeRequestOption + func WithDatabase(dbName string) testcontainers.CustomizeRequestOption + func WithInitScripts(scripts ...string) testcontainers.CustomizeRequestOption + func WithPassword(password string) testcontainers.CustomizeRequestOption + func WithUsername(user string) testcontainers.CustomizeRequestOption + type PostgresContainer struct + func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*PostgresContainer, error) + func (c *PostgresContainer) ConnectionString(ctx context.Context, args ...string) (string, error) + func (c *PostgresContainer) MustConnectionString(ctx context.Context, args ...string) string + func (c *PostgresContainer) Restore(ctx context.Context, opts ...SnapshotOption) error + func (c *PostgresContainer) Snapshot(ctx context.Context, opts ...SnapshotOption) error + type SnapshotOption func(container *snapshotConfig) *snapshotConfig + func WithSnapshotName(name string) SnapshotOption