Documentation ¶
Overview ¶
Package pg contains implementations for order repositories
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderProductRepository ¶
type OrderProductRepository struct {
// contains filtered or unexported fields
}
OrderProductRepository pg repository implementation.
func NewOrderProductRepository ¶
func NewOrderProductRepository(client *ent.Client, logger *zap.Logger) *OrderProductRepository
NewOrderProductRepository create instance of OrderProductRepository.
func (*OrderProductRepository) BulkCreateTx ¶
func (r *OrderProductRepository) BulkCreateTx(ctx context.Context, products order.Products) (order.Products, error)
BulkCreateTx order products in db with transaction.
type OrderRepository ¶
type OrderRepository struct {
// contains filtered or unexported fields
}
OrderRepository pg repository implementation.
func NewOrderRepository ¶
func NewOrderRepository(client *ent.Client, logger *zap.Logger) *OrderRepository
NewOrderRepository create instance of OrderRepository.
func (OrderRepository) Query ¶
func (r OrderRepository) Query(ctx context.Context, criteria *order.QueryCriteria) (*order.QueryResult, error)
Query orders from db.
Click to show internal directories.
Click to hide internal directories.