Summary
Upsert the core subset of fields for the main game records into the games table.
Details
- This is the final database step, where the main game object is saved.
- An
INSERT ... ON CONFLICT DO UPDATE statement should be used to handle both new and existing games.
- Focus on a core subset of fields for Phase 1 (e.g., name, summary, cover_url, first_release_date).
Acceptance Criteria
Dependencies
IGDB ETL – Dimension Upsert
Out of Scope
- Storing complex relational data like screenshots or videos.
Test Plan
- Write an integration test that provides a sample game object and verifies it is correctly inserted and then updated in the test database.
Checklist
Summary
Upsert the core subset of fields for the main game records into the
gamestable.Details
INSERT ... ON CONFLICT DO UPDATEstatement should be used to handle both new and existing games.Acceptance Criteria
Dependencies
IGDB ETL – Dimension UpsertOut of Scope
Test Plan
Checklist