postgres

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

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParticipatingStoreRepository

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

func NewParticipatingStoreRepository

func NewParticipatingStoreRepository(tableName string, db *sql.DB) ParticipatingStoreRepository

func (ParticipatingStoreRepository) FindAll

func (r ParticipatingStoreRepository) FindAll(ctx context.Context) (stores []*domain.Store, err error)

type ProductRepository

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

func NewProductRepository

func NewProductRepository(tableName string, db *sql.DB) ProductRepository

func (ProductRepository) Delete

func (r ProductRepository) Delete(ctx context.Context, id string) error

func (ProductRepository) Find

func (ProductRepository) GetCatalog

func (r ProductRepository) GetCatalog(ctx context.Context, storeID string) ([]*domain.Product, error)

func (ProductRepository) Save

func (r ProductRepository) Save(ctx context.Context, product *domain.Product) error

type StoreRepository

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

func NewStoreRepository

func NewStoreRepository(tableName string, db *sql.DB) StoreRepository

func (StoreRepository) Delete

func (r StoreRepository) Delete(ctx context.Context, storeID string) error

func (StoreRepository) Find

func (r StoreRepository) Find(ctx context.Context, storeID string) (*domain.Store, error)

func (StoreRepository) FindAll

func (r StoreRepository) FindAll(ctx context.Context) (stores []*domain.Store, err error)

func (StoreRepository) FindParticipatingStores

func (r StoreRepository) FindParticipatingStores(ctx context.Context) (stores []*domain.Store, err error)

func (StoreRepository) Save

func (r StoreRepository) Save(ctx context.Context, store *domain.Store) error

func (StoreRepository) Update

func (r StoreRepository) Update(ctx context.Context, store *domain.Store) error

Jump to

Keyboard shortcuts

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