mssql

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: 8 Imported by: 0

Documentation

Overview

Package mssql provides setup for spinning up a mssql container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSN

func DSN(dbName, dbPassword string) string

DSN returns the database dsn for connecting to server.

func Request

func Request(dbName, dbPassword string, opts ...testcontainers.GenericContainerOption) testcontainers.StartGenericContainerRequest

Request creates a new request for starting a mssql server.

func RunMigrations

func RunMigrations(migrationSource string) testcontainers.ContainerCallback

RunMigrations is option to run migrations.

func StartGenericContainer

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

StartGenericContainer starts a new mssql container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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