-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Please Provide a Reader Only Release #256
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
Comments
Is your goal with a read only version to reduce the size of the javascript? Or protect the data being loaded? |
@dinedal the former |
You should issue |
@dinedal perhaps we have some misunderstanding here: |
Right, you will need to read it, I presume using You will need to either issue an I assume from your response that you're not doing the Or you are reading the rows in using If both are wrong, maybe you could be more specific on what you are loading and how? |
I think this issue is about providing an sql.js file that would be smaller, but would lack the ability to alter the data in the database. The use-case is simple and (I believe) widespread: load a database file from a server and exploit its data on the client. |
Unfortunately, sqlite itself does not seem to provide a compilation option for doing this. (https://www.sqlite.org/compile.html). So this feature being implemented is unlikely. |
Ahhhhh yes damn when @Riajyuu replied 'the former' I totally flipped it around in my head! Sorry about that. |
Yes, we don't have an easy way to do it in SQLite, we which this project is based off of. |
@lovasoa is right. Except that I don't meet any server. Users must provide a sqlite location in file explorer. |
This page in the SQLite documentation might be of interest: https://www.sqlite.org/footprint.html |
I just about want to open new issue but I see my issue is already here. |
@bachvtuan As mentioned above, this library is based on a compilation of sqlite using emscripten. Since SQLite does not offer an option to create a read-only binary, sql.js is very unlikely to provide such an option anytime soon. |
For those interested in a lighter alternative to sql.js, you can have a look at google's lovefield |
Hi,
I have a repository that requires to read data from SQLite. I'm pretty sure I need only to read data from without writing into it later.
I understand 2.6MB is an ideal size but is it possible to provide a reader only release?
Thx in advance.
The text was updated successfully, but these errors were encountered: