The database surface an inventory read needs — and NOTHING ELSE.
There is no run() on this seam, deliberately. Every other store in this
package takes a shape that can write, because it writes; this one cannot
express a write at all, so "the inventory performs no writes" is a fact about
the type rather than a promise about the code. env.DB satisfies it
structurally, as does a node:sqlite test double.
The database surface an inventory read needs — and NOTHING ELSE.
There is no
run()on this seam, deliberately. Every other store in this package takes a shape that can write, because it writes; this one cannot express a write at all, so "the inventory performs no writes" is a fact about the type rather than a promise about the code.env.DBsatisfies it structurally, as does a node:sqlite test double.