package
0.0.0-20250116170917-d080ad2d5372
Repository: https://github.com/kyma-project/examples.git
Documentation: pkg.go.dev
# Functions
Create is used to create an OrderRepository based on the given dbtype.
NewOrderRepositoryDb is used to instantiate and return the DB implementation of the OrderRepository.
NewOrderRepositoryMemory is used to instantiate and return the DB implementation of the OrderRepository.
# Constants
MemoryDatabase value can be used to start the service using an in-memory DB.
SQLServerDriverName value can be used to start the service using an external MsSql DB.
# Variables
ErrDuplicateKey is thrown when there is an attempt to create an order with an OrderId which already is used.
# Structs
MockOrderRepository is an autogenerated mock type for the OrderRepository type.
Order contains the details of an order entity.
No description provided by the author
# Interfaces
OrderRepository interface defines the basic operations needed for the order service
go:generate mockery -name OrderRepository -inpkg.