testfixtures

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDBConfig = DBConfig{
	Username: "root",
	Password: "dev",
	Hostname: "localhost",
	Port:     3307,
}

Functions

This section is empty.

Types

type CustomType

type CustomType [16]byte

func CustomTypeFromString

func CustomTypeFromString(s string) CustomType

func (*CustomType) Scan

func (u *CustomType) Scan(value interface{}) error

func (CustomType) String

func (u CustomType) String() string

func (CustomType) Value

func (u CustomType) Value() (driver.Value, error)

type DBConfig

type DBConfig struct {
	Username string
	Password string
	Hostname string
	Port     uint16
}

func (DBConfig) String

func (d DBConfig) String() string

type TestDatabase

type TestDatabase struct {
	DBName    string
	ControlDB *sql.DB
	*sql.DB
}

func NewTestDatabase

func NewTestDatabase() (*TestDatabase, error)

func (*TestDatabase) Close

func (t *TestDatabase) Close() error

Jump to

Keyboard shortcuts

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