multinodedbtest

package
v1.94.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMasterDB

func CreateMasterDB(ctx context.Context, log *zap.Logger, name string, category string, index int, dbInfo Database) (db multinode.DB, err error)

CreateMasterDB creates a new satellite database for testing.

func CreateMasterDBOnTopOf

func CreateMasterDBOnTopOf(ctx context.Context, log *zap.Logger, tempDB *dbutil.TempDatabase) (db multinode.DB, err error)

CreateMasterDBOnTopOf creates a new satellite database on top of an already existing temporary database.

func Run

func Run(t *testing.T, test func(ctx *testcontext.Context, t *testing.T, db multinode.DB))

Run method will iterate over all supported databases. Will establish connection and will create tables for each DB.

func SchemaName

func SchemaName(testname, category string, index int, schemaSuffix string) string

SchemaName returns a properly formatted schema string.

func SchemaSuffix

func SchemaSuffix() string

SchemaSuffix returns a suffix for schemas.

Types

type Database

type Database struct {
	Name    string
	URL     string
	Message string
}

Database describes a test database.

Jump to

Keyboard shortcuts

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