postgres
go
import "github.com/prescriptoo/prescriptoo-api/services/medicine/internal/adapters/postgres"Package postgres implements medicine persistence with PostgreSQL.
Index
func NewCatalogRepository
go
func NewCatalogRepository(pool *pgxpool.Pool) ports.CatalogRepositoryNewCatalogRepository constructs the PostgreSQL adapter; nil supports offline schemas.
type FinalPrescriptionProducts
FinalPrescriptionProducts resolves active products while holding the catalogue's shared mutation lock.
go
type FinalPrescriptionProducts struct{}func (FinalPrescriptionProducts) ResolveFinalPrescriptionProducts
go
func (FinalPrescriptionProducts) ResolveFinalPrescriptionProducts(ctx context.Context, tx pgx.Tx, products []c.FinalProductSnapshot) ([]c.FinalCanonicalProduct, error)ResolveFinalPrescriptionProducts validates every canonical field currently owned by Medicine. Route, ingredient identities, class and catalogue version must be populated by real catalogue metadata.
Generated by gomarkdoc