Node.js Persistence
Continuing discussion from https://github.com/sqlite/sqlite-wasm/pull/48
Proposed solutions:
Hi, about this warning:
Node.js is currently only supported for in-memory databases without persistence.
I'd like clarification. Does this mean that I can't store data into the private FS provided by OPFS? From the proposed solution that seems to be the case.
An additional question: Are there types for the Promiser api? A quick glance at index.d.ts says no as there isn't a Promiser type.
I'd like clarification. Does this mean that I can't store data into the private FS provided by OPFS? From the proposed solution that seems to be the case.
Correct, in Node.js, there's no OPFS. There are other storage mechanisms like regular files, but currently this version of SQLite Wasm can't make use of them.
An additional question: Are there types for the Promiser api? A quick glance at
index.d.tssays no as there isn't a Promiser type.
This is #53.
I'd like clarification. Does this mean that I can't store data into the private FS provided by OPFS? From the proposed solution that seems to be the case.
Correct, in Node.js, there's no OPFS. There are other storage mechanisms like regular files, but currently this version of SQLite Wasm can't make use of them.
An additional question: Are there types for the Promiser api? A quick glance at
index.d.tssays no as there isn't a Promiser type.This is #53.
Thank you. For my second question the answer is no then, thanks.