pgxmockhelper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockAssets added in v0.5.0

func MockAssets(db pgxmock.PgxConnIface)

func MockDBEodQuery

func MockDBEodQuery(db pgxmock.PgxConnIface, fn []string, a, b time.Time, cols ...string)

func MockHolidays added in v0.5.0

func MockHolidays(db pgxmock.PgxConnIface)

func MockManager added in v0.5.0

func MockManager(db pgxmock.PgxConnIface)

func MockTaxRates added in v0.6.0

func MockTaxRates(db pgxmock.PgxConnIface)

func MockTradingDays added in v0.5.0

func MockTradingDays(db pgxmock.PgxConnIface)

Types

type CSVRows

type CSVRows struct {
	// contains filtered or unexported fields
}

func NewCSVRows

func NewCSVRows(inputs []string, typeMap map[string]string) *CSVRows

func (*CSVRows) Between

func (csvRows *CSVRows) Between(a time.Time, b time.Time) *CSVRows

func (*CSVRows) Cols added in v0.5.0

func (csvRows *CSVRows) Cols(cols []string) *CSVRows

Cols filters columns to only those specified in the cols array

func (*CSVRows) Rows

func (csvRows *CSVRows) Rows() *pgxmock.Rows

Jump to

Keyboard shortcuts

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