fixture

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLoader

type DataLoader struct {
	TableName        string
	Columns          []string
	ColumnsSql       []string
	ValueDefinitions [][]interface{}
}

func (DataLoader) GetCliCommand added in v1.0.0

func (this DataLoader) GetCliCommand() *cli.Command

func (DataLoader) Load

func (this DataLoader) Load(db gosql.DB,
	startTime, endTime time.Time,
	rowCountPerDayFrom, rowCountPerDayTo int,
	fluctuations []Fluctuation)

func (DataLoader) Unload

func (this DataLoader) Unload(db gosql.DB)

type Fluctuation

type Fluctuation struct {
	Date       time.Time
	Sign       int
	Multiplier uint // in percents
}

type RowCountGenerator

type RowCountGenerator struct{}

type RowGenerator

type RowGenerator struct{}

func (RowGenerator) Generate

func (this RowGenerator) Generate(rowCount int, date time.Time, valueDefinitions [][]interface{}) (rows [][]interface{})

Jump to

Keyboard shortcuts

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