postgres

package
v0.0.0-...-f0852b9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(
	config *config.Postgres,
) (*pgx.Conn, error)

Types

type OrderStorage

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

func NewOrderStorage

func NewOrderStorage(conn *pgx.Conn) *OrderStorage

func (*OrderStorage) Add

func (storage *OrderStorage) Add(ctx context.Context, order service.Order) error

Add implements service.Storage.

Jump to

Keyboard shortcuts

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