Commit e6c2adb
committed
docs(driver-memory): stop calling this production-ready; say what it does not enforce (#4065)
The class docstring opened with "A production-ready implementation of the
ObjectStack Driver Protocol". The driver stores no constraints of any kind:
`create()` is a `table.push()` and `syncSchema()` only allocates an array and
indexes temporal fields, so there is no primary key, no uniqueness, no NOT NULL,
no foreign key and no column typing. `bulkCreate` lands two rows with the same
id where a SQL driver raises a constraint violation, and a read returns both —
the second finding in #4065, and the mechanism behind the 2N row growth there.
Per Prime Directive #10 the options for `declared ≠ enforced` are implement it,
trim the claim, or file it. With this driver moving to maintenance-only — kept
for the last-resort rung of the dev step-down, browser/edge runtimes with no
SQLite build, and the read-coercion parity gate — the claim is what goes.
The docstring now states the missing constraints plainly, names the driver as a
WEAK oracle for tests, and points at in-memory SQLite instead. No behaviour
change; 197 driver-memory tests unchanged and green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5q3BZMpdiAueHf2emhDY91 parent 988910a commit e6c2adb
2 files changed
Lines changed: 35 additions & 5 deletions
File tree
- .changeset
- packages/plugins/driver-memory/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
95 | 115 | | |
96 | 116 | | |
97 | 117 | | |
| |||
0 commit comments