Persistent database/table catalog and active database
Selected database is session state; USE does not need to persist across processes. Durable catalog state does.
Contract
| Field | Value |
|---|---|
| Specification | CAT-001 |
| Module | catalog |
| 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 |
Interface
Catalog.open/createDatabase/use/getSchema/persist
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
- STORE-001: Page file allocation, reads and writes
Acceptance checklist
- [ ] Persist schema, table files and current session database separately
- [ ] Write metadata with version and recoverable replace; clear absent objects safely
- [ ] Reopen metadata and point to the same table/page files
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.