You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add streaming DMMF binary command to bypass V8 and WASM limits
Add a `get-dmmf` subcommand to the prisma-fmt CLI that streams DMMF JSON
directly to stdout via serde_json::to_writer(). This approach has no
memory ceiling — unlike WASM (limited to ~4GB linear memory), the native
binary can stream arbitrarily large DMMF with only 1x peak memory
(the in-memory DMMF struct, no serialized buffer).
Changes:
- dmmf crate: add dmmf_json_to_writer() using serde_json::to_writer()
- prisma-fmt: add get_dmmf_to_writer() that validates + streams
- prisma-fmt: export get_dmmf_to_writer() from lib.rs
- prisma-fmt: add GetDmmf CLI variant, reads stdin params, streams to stdout
Alternative approach to the buffered WASM API in prisma#5757.
Fixes: prisma/prisma#29111
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments