-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changes for jupyterlite-kernel #119
changes for jupyterlite-kernel #119
Conversation
changed find sqlite
290e1ce
to
2b73df5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious to know why did you have to add a FindSQLite file. find_package(SQLite3 REQUIRED)
didn't work?
@marimeireles the sql installation comes from the SQLiteCpp - installation. |
but @marimeireles we can also wait a bit with mering this since we are currently changing xeus itself a bit |
Not a problem for me, we can merge it now and then do a new PR once the changes upstream are in.
I see. Cool. Was just wondering! :) |
This looks really useful :-) But if the database is large it means the browser will also take quite a hit memory wise, and network / download time wise. An alternative approach for accessing large SQLite databases from in-browser SQLite engines is described in Hosting SQLite databases on Github Pages. To quote that post, it uses "a virtual file system that fetches chunks of the database with HTTP Range requests when SQLite tries to read from the filesystem: sql.js-httpvfs." |
@psychemedia, thanks for the input :) I'll merge this PR and fix the CI on a next one. |
@DerThorsten Do you have an example of using the magics to download and query data from a sqlite db located at a particular URL? If I just try to run the
If I create a database, the |
@psychemedia this feature only works in case of a wasm build (ie JupyterLite ) But should not be too complicated to make the changes in the kernel repo by changing the Dockerfile |
Ah, ok, thanks... I must have misread the other thread that referred to this one.. |
FETCH <URL> <FILENAME>
: download a file / sqlite database and store it at the filenameSET_IDBFS_DIR <DIR>
: set the directory which is "cached" / "persisted" to the IndexedDBPUSH_TO_IDBFS
: 'flush' content of persisted directory to IndexedDB