postgreSQL

package
v0.0.0-...-71861b7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetProductList = `select product_id, name, price, currency, description, image_url, createtimestamp, updatetimestamp
from products`
)

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(ctx context.Context) (*sql.DB, error)

Types

type Connection

type Connection struct {
	Database       string `json:"database"`
	UseID          string `json:"userID"`
	Password       string `json:"password"`
	ConnectionName string `json:"connectionName"`
	DBIAMUser      string `json:"dbIAMUser"`
}

type ProductsSQL

type ProductsSQL struct {
	DBConn *sql.DB
}

func NewCProductsPSQL

func NewCProductsPSQL(dbConn *sql.DB) *ProductsSQL

func (*ProductsSQL) GetProductList

func (p *ProductsSQL) GetProductList(ctx context.Context) (schema.ProductResponse, error)

Jump to

Keyboard shortcuts

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