Documentation / CORE-002
Issue boardGitLab source
CORE-002 Planned contract

Statement AST and bound execution contracts

Implement the following agreed behavior through the shared engine interfaces.

Contract

Field Value
Specification CORE-002
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

Open GitLab issue

Interface

parse(sql) -> Statement; bind(Statement, Catalog) -> BoundStatement

These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.

Dependencies

Acceptance checklist

  • Specify every required statement variant and qualified column reference
  • Separate parsing from metadata lookup and execution
  • Document error values and ownership; SQL layer never manipulates raw pages

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.

DBS 005 · Specification v1 · Team review required for proposed interfaces.
Engine behavior is planned; implementation progress lives in GitLab.