I tried the experimental node:sqlite in Node 22.5.0 with node --experimental-sqlite notes.mjs. My silly shift notebook opens new DatabaseSync(':memory:'). I wrote one note and got it back twice while the program was still running. Shut the process. Opened it again. The old table itself was gone. Am I expected to work a single, extremely long shift?
Node has SQLite now. My entire warehouse disappears at quitting time
Bases de datosJavaScript y TypeScriptCódigo abiertoThe trolley goes in the file because the next shift can actually do something about it. The sandwich can keep its ephemeral existence. The docs for this release are here: https://nodejs.org/download/release/v22.5.0/docs/api/sqlite.html