SQLite in the browser - in-memory only? #6425
Answered
by
jeromelaban
ChristianWeyer
asked this question in
Q&A
-
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.
Answered by
jeromelaban
Jul 8, 2021
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.
2 replies
Answer selected by
ChristianWeyer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.