testing

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	// Build the database.
	Build() error
	// Config gets the database configuration.
	Config() DatabaseConfig
	// DEPRECATED use Stop instead.
	Clear() error
	// Image gets the database image.
	Image(Image)
	// Seed runs the database seeds.
	Seed(seeds ...seeder.Seeder)
	// Stop stops the database.
	Stop() error
}

type DatabaseConfig added in v1.14.0

type DatabaseConfig struct {
	Host     string
	Port     int
	Database string
	Username string
	Password string
}

type DatabaseDriver

type DatabaseDriver interface {
	// Build the database.
	Build() error
	// Config get database configuration.
	Config() DatabaseConfig
	// Fresh the database.
	Fresh() error
	// Image gets the database image.
	Image(image Image)
	// Name gets the database driver name.
	Name() orm.Driver
	// Stop the database.
	Stop() error
}

type Docker

type Docker interface {
	// Database get a database connection instance.
	Database(connection ...string) (Database, error)
}

type Image

type Image struct {
	Env          []string
	ExposedPorts []string
	Repository   string
	Tag          string
}

type Testing

type Testing interface {
	// Docker get the Docker instance.
	Docker() Docker
}

Jump to

Keyboard shortcuts

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