Skip to content

Commit d8cfa0b

Browse files
os-zhuangclaude
andcommitted
chore: changeset for cli memory driver dispatch fix (#3276)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f30a4f3 commit d8cfa0b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
fix(cli): honor `OS_DATABASE_DRIVER=memory` (mingo InMemoryDriver) (#3276)
6+
7+
`os dev` / `os start` / `os serve` advertised a `memory` database driver
8+
(`--database-driver memory`, `OS_DATABASE_DRIVER=memory`, and a `memory://`
9+
URL scheme), but `serve.ts`'s driver dispatch had no `memory` branch — so it
10+
silently fell through to the dev SQLite `:memory:` default (SQLite-in-memory,
11+
a *different* engine) or, in production, registered no driver at all.
12+
13+
The driver kind-resolution + construction is now extracted into
14+
`utils/storage-driver.ts` (unit-testable in isolation) with the missing
15+
`memory` branch: selecting it yields the mingo `InMemoryDriver` in dev AND
16+
production. The `memory://` / `mingo://` URL scheme is now recognized too,
17+
kept distinct from sqlite's `:memory:` pseudo-file. Telemetry-datasource
18+
provisioning behavior is unchanged.

0 commit comments

Comments
 (0)