Categorygithub.com/testcontainers/testcontainers-go/modules/cockroachdb
modulepackage
0.35.0
Repository: https://github.com/testcontainers/testcontainers-go.git
Documentation: pkg.go.dev

# Functions

Run start an instance of the CockroachDB container type using the given image and options.
Deprecated: use Run instead.
WithDatabase sets the name of the database to create and use.
WithInitScripts adds the given scripts to those automatically run when the container starts.
WithInsecure enables insecure mode which disables TLS.
WithNoClusterDefaults disables the default cluster settings script.
WithPassword sets the password of the user to create and connect as.
WithStoreSize sets the amount of available [in-memory storage].
WithUser sets the name of the user to create and connect as.

# Variables

ErrTLSNotEnabled is returned when trying to get a TLS config from a container that does not have TLS enabled.

# Structs

CockroachDBContainer represents the CockroachDB container type used in the module.