testing

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBContainer

type DBContainer struct {
	testcontainers.Container
	Host string
	Port int
}

func NewDBContainer

func NewDBContainer(ctx context.Context, proto config.DatabaseProtocol) (*DBContainer, error)

type Database

type Database struct {
	DB        *sql.DB
	Driver    fliptsql.Driver
	Container *DBContainer
	// contains filtered or unexported fields
}

func Open

func Open() (*Database, error)

func (*Database) Shutdown

func (d *Database) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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