postgres

package
v0.0.0-...-8b81a96 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgAddressRepository

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

func NewPgAddressRepository

func NewPgAddressRepository(db *pgxpool.Pool) *PgAddressRepository

func (*PgAddressRepository) Create

func (r *PgAddressRepository) Create(newAddress domain.NewAddress) (*domain.Address, error)

func (*PgAddressRepository) Delete

func (r *PgAddressRepository) Delete(id string) error

func (*PgAddressRepository) FindAll

func (*PgAddressRepository) FindBy

func (r *PgAddressRepository) FindBy(filters map[string]interface{}) ([]domain.Address, error)

func (*PgAddressRepository) FindById

func (r *PgAddressRepository) FindById(id string) (*domain.Address, error)

func (*PgAddressRepository) Update

func (r *PgAddressRepository) Update(address domain.Address) error

type PgCustomerRepository

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

func NewPgCustomerRepository

func NewPgCustomerRepository(db *pgxpool.Pool) *PgCustomerRepository

func (*PgCustomerRepository) Create

func (r *PgCustomerRepository) Create(newCustomer domain.NewCustomer) (*domain.Customer, error)

func (*PgCustomerRepository) Delete

func (r *PgCustomerRepository) Delete(id string) error

func (*PgCustomerRepository) FindAll

func (*PgCustomerRepository) FindById

func (r *PgCustomerRepository) FindById(id string) (*domain.Customer, error)

func (*PgCustomerRepository) Update

func (r *PgCustomerRepository) Update(customer domain.Customer) error

type PgProductRepository

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

func NewPgProductRepository

func NewPgProductRepository(db *pgxpool.Pool) *PgProductRepository

func (*PgProductRepository) Create

func (r *PgProductRepository) Create(newProduct domain.NewProduct) (*domain.Product, error)

func (*PgProductRepository) Delete

func (r *PgProductRepository) Delete(id string) error

func (*PgProductRepository) FindAll

func (*PgProductRepository) FindById

func (r *PgProductRepository) FindById(id string) (*domain.Product, error)

func (*PgProductRepository) Update

func (r *PgProductRepository) Update(product domain.Product) error

Jump to

Keyboard shortcuts

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