postgres

package
v0.0.0-...-f16b8b1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGProduct

type PGProduct struct {
	DB *database.DBTransaction
}

PGProduct implements methods for postgres query execution

func (*PGProduct) Add

func (pg *PGProduct) Add(in *product.Product) (err error)

Add create a products on database

func (*PGProduct) ListAll

func (pg *PGProduct) ListAll() (res *product.ListProducts, err error)

ListAll get a list of a products on database

func (*PGProduct) ListAllProductsWithMinimumQuantity

func (pg *PGProduct) ListAllProductsWithMinimumQuantity() (*product.ListProducts, error)

ListAllProductsWithMinimumQuantity list all products with minimum quantity

func (*PGProduct) ShowDetails

func (pg *PGProduct) ShowDetails(ProductID *int64) (res *product.Product, err error)

ShowDetails get details of a product on database

Jump to

Keyboard shortcuts

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