SHOW INDEXES metadata command
Proposed team output, not a grader-prescribed schema. Must be reviewed; DESC remains the required index display contract.
Contract
| Field | Value |
|---|---|
| Specification | INDEX-005 |
| Module | sql |
| Scope | Team convention — not separately scored |
| Milestone | M2, due 2026-12-20 |
| Owner role | SQL / frontend — teammate to claim |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
Catalog.listExplicitIndexes(database)
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
Acceptance checklist
- Implement the SQL.g4 SHOW INDEXES statement
- Document a team-defined stable column schema because public cases do not score it
- Exclude implicit supporting indexes and include table/name/columns
Setup data
Run this in a fresh isolated data directory before the example. Setup commands emit their own results; the expected block below covers only the listed input.
CREATE DATABASE demo;
USE demo;
CREATE TABLE people (id INT NOT NULL, name VARCHAR(16) NOT NULL, score FLOAT NOT NULL);
INSERT INTO people VALUES (1, 'Ada', 90.5), (2, 'Lin', 80.0);
ALTER TABLE people ADD INDEX idx_id(id);
Input
SHOW INDEXES;
Expected output
INDEXES
people.idx_id(id)
@
Where no ORDER BY appears, row order is not guaranteed. Error message text is illustrative; required diagnostic keywords and result framing are binding.
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.