postgrestype

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: 10 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) Get

func (s *Storage) Get(ctx context.Context, id image.ID) (*image.Image, error)

func (*Storage) GetMany

func (s *Storage) GetMany(ctx context.Context, ids []image.ID) ([]*image.Image, error)

func (*Storage) Upsert

func (s *Storage) Upsert(ctx context.Context, image *image.Image) error

Jump to

Keyboard shortcuts

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