postgres

package
v0.0.0-...-2e7adc9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(ctx context.Context, dsn string) (*pgx.Conn, error)

func NewQueries

func NewQueries(conn *pgx.Conn) *db.Queries

func NewSqlcIdempotencyRepository

func NewSqlcIdempotencyRepository(queries *db.Queries) repositories.IdempotencyRepository

func NewSqlcProductRepository

func NewSqlcProductRepository(queries *db.Queries) repositories.ProductRepository

func NewSqlcSellerRepository

func NewSqlcSellerRepository(queries *db.Queries) repositories.SellerRepository

Types

type SqlcIdempotencyRepository

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

func (*SqlcIdempotencyRepository) Create

func (*SqlcIdempotencyRepository) FindByKey

func (*SqlcIdempotencyRepository) Update

type SqlcProductRepository

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

func (*SqlcProductRepository) Create

func (*SqlcProductRepository) Delete

func (repo *SqlcProductRepository) Delete(id uuid.UUID) error

func (*SqlcProductRepository) FindAll

func (repo *SqlcProductRepository) FindAll() ([]*entities.Product, error)

func (*SqlcProductRepository) FindById

func (repo *SqlcProductRepository) FindById(id uuid.UUID) (*entities.Product, error)

func (*SqlcProductRepository) Update

type SqlcSellerRepository

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

func (*SqlcSellerRepository) Create

func (*SqlcSellerRepository) Delete

func (repo *SqlcSellerRepository) Delete(id uuid.UUID) error

func (*SqlcSellerRepository) FindAll

func (repo *SqlcSellerRepository) FindAll() ([]*entities.Seller, error)

func (*SqlcSellerRepository) FindById

func (repo *SqlcSellerRepository) FindById(id uuid.UUID) (*entities.Seller, error)

func (*SqlcSellerRepository) Update

Jump to

Keyboard shortcuts

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