catalogdb

package
v0.0.0-...-3e10e28 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Postgres_Client *pgxpool.Pool

Functions

func FindAll

func FindAll(ctx context.Context) (*[]Catalog, error)

func GetEnv

func GetEnv(key string) string

func NewClient

func NewClient(ctx context.Context) (*pgxpool.Pool, error)

func UpdateOne

func UpdateOne(ctx context.Context, catalog *Catalog) error

Types

type Catalog

type Catalog struct {
	Id           string
	Name         string
	Details      string
	Total_Orders int64
	Average_Cost int64
}

func FindOne

func FindOne(ctx context.Context, id string) (*Catalog, error)

Jump to

Keyboard shortcuts

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