Documentation ¶
Overview ¶
Package containersx provides a wrapper around creating testcontainers that are used throughout the ecosystem
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBContainer ¶
type DBContainer struct { Container testcontainers.Container URI string }
DBContainer represents a testcontainer running a database with a URI to connect to it
func NewCockroachDB ¶
func NewCockroachDB(ctx context.Context, img string) (*DBContainer, error)
NewCockroachDB will return a new DBContainer backed by cockroachdb
func NewPostgresDB ¶
func NewPostgresDB(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*DBContainer, error)
NewPostgresDB will return a new DBContainer backed by postgres
Click to show internal directories.
Click to hide internal directories.