SQLite in the browser - in-memory only? #6425
-
The SQLite sample over there is quite cool :-) This is using SQLite in-memory, right? What would be a use-case for this, though? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not using SQLite in-memory, but rather actual file system APIs (from what SQLite is concerned). The way emscripten abstracts the filesystem is a bit different though, where the FS entries are loaded in memory an persisted regularly to an Indexed DB. This is likely to change in the future, once proper filesystem access is provided to WebAssembly modules. |
Beta Was this translation helpful? Give feedback.
It's not using SQLite in-memory, but rather actual file system APIs (from what SQLite is concerned).
The way emscripten abstracts the filesystem is a bit different though, where the FS entries are loaded in memory an persisted regularly to an Indexed DB. This is likely to change in the future, once proper filesystem access is provided to WebAssembly modules.