mongo

package module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mongo provides setup for spinning up a mongodb container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSN

func DSN(dbName string) string

DSN returns the database dsn for connecting to server.

func Request

func Request(opts ...testcontainers.GenericContainerOption) testcontainers.StartGenericContainerRequest

Request creates a new request for starting a mongo server.

func RunMigrations

func RunMigrations(migrationSource, dbName string) testcontainers.ContainerCallback

RunMigrations is option to run migrations.

func StartGenericContainer

func StartGenericContainer(ctx context.Context, opts ...testcontainers.GenericContainerOption) (testcontainers.Container, error)

StartGenericContainer starts a new mysql container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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