fixtures

package
v1.21.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresParam  = "postgres"
	MysqlParam     = "mysql"
	AerospikeParam = "aerospike"
	RedisParam     = "redis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB            *sql.DB
	Aerospike     *aerospikeClient.Client
	DbType        DbType
	Location      string
	Debug         bool
	FixtureLoader Loader
}

type DbType added in v1.1.0

type DbType int
const (
	Postgres DbType = iota
	Mysql
	Aerospike
	Redis
	CustomLoader // using external loader if gonkey used as a library
)

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