Document view versioning pattern for external consumers #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
gobank-db does not currently document the convention for database views that serve as contracts with external consumers.
Proposed Convention
Views are the stable interface that external consumers depend on. The versioning pattern follows Go module conventions:
v0_product_catalogue) — unstable, may change without notice. External consumers should not depend on these in production.v1_product_catalogue) — stable contract. Only non-breaking changes allowed: adding columns, adding rows. No column removals, type changes, or semantic changes.v2_product_catalogue). The previous version continues to exist.Rules
-- DEPRECATEDcommentExample
Context
gobank-products is the first client implementing this pattern with
v0_product_catalogue. This should be documented in gobank-db so all gobank family projects follow the same convention.Deliverables
Migrated from Codeberg: originally #3, opened 2026-03-27.