postgres

package
v0.0.0-...-12e6479 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumptionPostgresRepository

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

func NewConsumptionPostgresRepository

func NewConsumptionPostgresRepository(baseDB postgres.PostgresDatabase) *ConsumptionPostgresRepository

NewConsumptionPostgresRepository creates a new instance of ConsumptionRepository interface implementation.

func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedDaily

func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedDaily(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)

func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedMonthly

func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedMonthly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)

func (*ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedWeekly

func (postgresRepo *ConsumptionPostgresRepository) GetConsumptionsByIDSGroupedWeekly(ids []int64, beginDate, endDate string) (consumptions []*entity.Consumption, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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