postgres

package
v0.0.0-...-5164d6d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewImageStorage

func NewImageStorage(db *sqlx.DB) *Storage

func (*Storage) DeleteWishlistItem

func (s *Storage) DeleteWishlistItem(ctx context.Context, itemID wishlistPkg.ItemID) error

func (*Storage) Get

func (*Storage) GetByUserID

func (s *Storage) GetByUserID(ctx context.Context, userID userPkg.ID) ([]*wishlistPkg.Wishlist, error)

func (*Storage) GetWishlistItemByID

func (s *Storage) GetWishlistItemByID(ctx context.Context, itemID wishlistPkg.ItemID) (*wishlistPkg.Item, error)

func (*Storage) GetWishlistItems

func (s *Storage) GetWishlistItems(ctx context.Context, wishlistID wishlistPkg.ID, limit, offset uint) (items []*wishlistPkg.Item, haveMore bool, err error)

func (*Storage) Upsert

func (s *Storage) Upsert(ctx context.Context, w *wishlistPkg.Wishlist) error

func (*Storage) UpsertWishlistItem

func (s *Storage) UpsertWishlistItem(ctx context.Context, item *wishlistPkg.Item) error

Jump to

Keyboard shortcuts

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