Documentation / Guide
Issue boardGitLab source
Guide Developer guide

Build one engine, together

A shared implementation manual for our C++ database: 62 modular specifications, clear module boundaries, reproducible examples, and a December 30 release target.

Current state: the repository builds a CLI scaffold. SQL execution, storage, and indexes are planned. These pages define intended behavior; they do not claim that the engine already implements it.

Read this first

  1. System architecture shows how SQL becomes disk operations.
  2. SQL frontend follows input, parsing, binding, execution, and output.
  3. Storage backend explains pages, cached memory, rows, and B+ trees.
  4. Interface contracts define how the two work areas connect.
  5. Requirement coverage links every specification to its GitLab issue.

What we are building

The deliverable is a local database executable. A person or the grader gives it SQL, it reads and changes its own files, and it returns query results. It is not a web application: the user-facing contracts are SQL commands and CLI options. Between C++ modules, our contracts are types, methods, ownership, and errors.

Work area Main responsibility Starting point
SQL / frontend owner Shell, parser, catalog, command execution, joins, key semantics CLI-001, PARSE-001
Storage / search owner Page I/O, buffer pool, row files, B+ tree, index access, benchmarks STORE-001, INDEX-001
Both teammates Shared interfaces, row/index consistency, tests, review, report CORE-001, CORE-003

Three deliverables

Milestone Date in Beijing time What must work
M1 December 6 Create/use/drop databases; create/show/describe/drop tables; insert and read basic rows; save metadata and records to files; reopen in a new process.
M2 December 20 Required DML, filtering, joins, import, composite keys, ALTER, explicit indexes and index maintenance; complete 62/62 required local suite and course verification.
M3 December 30 Agreed optional scope, measured performance, finished report, practiced demo and reviewed master release.

How a feature gets finished

Pick a Ready issue, read its linked specification, check its prerequisites, and agree the interface before coding. Implement on a branch from develop. The other teammate reviews the MR and its Linux evidence. Merge to develop, delete the feature branch, and close that issue. Promote reviewed develop snapshots to master for releases.

The nine optional specifications are a stretch backlog. They become commitments only after required-suite success and a joint scope decision.

Source of truth

The tracked specs/catalog.json generates the feature pages and issue import. GitLab holds execution status, assignments and MR discussions. Update the specification in the same MR when behavior changes. Team architecture choices are explicitly marked as proposals and need joint review.

Course requirements come from the official tutorial, SQL grammar, public test cases and the supplied 2026 scoring sheet. Later TA announcements take precedence over historical tutorial examples.

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