X Tutup
The Wayback Machine - https://web.archive.org/web/20210124105053/https://github.com/sql-js/sql.js/pull/278
Skip to content
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

Add support for opening URLs (lazy database file) #278

Open
wants to merge 1 commit into
base: master
from

Conversation

@boramalper
Copy link

@boramalper boramalper commented Jun 2, 2019

I've added support for opening URLs using FS.createLazyFile API of Emscripten. I've modified api.coffee and worker.coffee respectively.

It might be also useful to document somewhere (README or the API docs?) that the following headers must be present for the file to be lazy-loaded (see library_fs.js:1703):

  1. Accept-Ranges: bytes
  2. Content-Length
  3. Content-Encoding (if other than identity)

Care must be taken that these headers are accessible from XHR requests, thus appropriate CORS headers (e.g. Access-Control-Expose-Headers) must be set accordingly.

@boramalper
Copy link
Author

@boramalper boramalper commented Jun 12, 2019

@lovasoa lovasoa force-pushed the sql-js:master branch from b3211a6 to e902ec2 Feb 29, 2020
@lovasoa lovasoa force-pushed the sql-js:master branch from 351ffdd to 6e7ec33 Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
X Tutup