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

SQL statement input and interactive shell

Implement the following agreed behavior through the shared engine interfaces.

Contract

Field Value
Specification CLI-002
Module frontend
Scope Required implementation or delivery
Milestone M1, due 2026-12-06
Owner role SQL / frontend — teammate to claim
Implementation Planned; scaffold only
Contract review Team review required before implementation

Open GitLab issue

Interface

StatementReader.next(stdin) -> SQL text

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

Dependencies

Acceptance checklist

  • [ ] Accept a complete semicolon-terminated line for batch grading
  • [ ] Handle multiline interactive statements and semicolons inside quoted strings
  • [ ] exit and EOF terminate cleanly; syntax failure leaves shell usable

Input

SELECT id
FROM people;

Expected output

Interactive table is readable; batch framing is specified separately.

Where no ORDER BY appears, row order is not guaranteed. Error message text is illustrative; required diagnostic keywords and result framing are binding.

Rejections and state

  • Unterminated input at EOF -> documented error without hanging

Verification

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.