quest

package
v0.0.0-...-cb989e9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObjects

func CreateObjects[T attrs.Definer](t *testing.T, objects ...T) (created []T, delete func(alreadyDeleted int) error)

Types

type DBTables

type DBTables[T testing.TB] struct {
	// contains filtered or unexported fields
}

func Table

func Table[T testing.TB](t T, model ...attrs.Definer) *DBTables[T]

func (*DBTables[T]) Create

func (t *DBTables[T]) Create()

func (*DBTables[T]) Drop

func (t *DBTables[T]) Drop()

type DatabaseConfig

type DatabaseConfig struct {
	DBName       string
	ServerConfig server.Config
	ProviderOpts []memory.ProviderOption
}

type QuestDatabase

type QuestDatabase interface {
	DB() (drivers.Database, error)
	Start() error
	Stop() error
}

func MySQLDatabase

func MySQLDatabase(cnf DatabaseConfig) (QuestDatabase, error)

Jump to

Keyboard shortcuts

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