fixtures

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresParam = "postgres"
	MysqlParam    = "mysql"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB       *sql.DB
	DbType   DbType
	Location string
	Debug    bool
}

type DbType added in v1.1.0

type DbType int
const (
	Postgres DbType = iota
	Mysql
)

func FetchDbType added in v1.1.0

func FetchDbType(dbType string) DbType

type Loader

type Loader interface {
	Load(names []string) error
}

func NewLoader

func NewLoader(cfg *Config) Loader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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