Have plan to add support for File System Access API (OPFS)? #1444
hangxingliu
started this conversation in
Ideas
Replies: 2 comments
-
Thanks for raising this. This would be very very interesting a getting this started is not too complex, but work has been mostly in other areas and this would need to be prioritised for one of the next release cycles. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any news on this? Would be very much interested in built-in local filesystem persistence. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File System Access API is now supported by most modern browsers. This signifies a more efficient means for frontend developers to access a large volume of persistent data compared to localStorage or IndexedDB.
This API offers a variety of beneficial methods such as createSyncAccessHandle and createWritable. These methods enable access to or writing parts of extensive persistent data from OPFS or the local filesystem (once the user has granted permission). Furthermore, these methods align well with many DuckDB use cases (e.g., exporting tables to files and data persistence requirements mentioned in recent discussions). Concurrently, SQLite3 WASM has incorporated this API, supplanting the obsolete WebSQL: https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system/
In summary, would you entertain the idea of supporting the File System Access API or devising a method to link DuckDB WASM with OPFS?
Thank you.
References:
Recent discussions that can be solved by this API:
Beta Was this translation helpful? Give feedback.
All reactions