Results, errors and write coordination
Team design: prevalidate mutations, stage changes, and undo partial in-process writes on failure. Crash recovery/WAL and full multi-statement transactions are outside required scope.
Contract
| Field | Value |
|---|---|
| Specification | CORE-003 |
| Module | contracts |
| Scope | Required implementation or delivery |
| Milestone | M1, due 2026-12-06 |
| Owner role | Shared — choose one MR owner |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
execute(BoundStatement) -> Result; ResultWriter.write(Result)
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
- CORE-001: Typed values, schemas and stable record identifiers
- CORE-002: Statement AST and bound execution contracts
Acceptance checklist
- Result distinguishes table, affected rows, DDL success and typed error
- Define duplicate/foreign/primary error categories without keyword collisions
- Reject an invalid single-row change before publishing row/index/catalog mutations
Verification
Use focused module checks plus the integration scenario above; no separate course score is claimed.
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.