N
N
Nikita Sklyuev2012-02-29 19:08:45
JavaScript
Nikita Sklyuev, 2012-02-29 19:08:45

javascript html5 and sqlite

Hello dear Habrahumans.
I have a certain sqlite database with several tables, a certain program works with the database, the database lies on the dropbox. Now there is a need to view data in this database on a tablet, there is no desire or experience to write an application. Actually, the question was born, is it possible to load the database using js and read the tables? it's just that if the file was hosted, then at least with the help of php it would be possible to read, and here is a dropbox in which you can run static html pages with scripts.

Actually the question is, is it possible to read sqlite on js? And if so, could anyone share how?

Many thanks in advance!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
dbmaster, 2012-03-01
@dbmaster

Firefox plugin won't work addons.mozilla.org/en-US/firefox/addon/sqlite-manager/ ?

K
Konstantin Kitmanov, 2012-02-29
@k12th

WebKit and Opera support the so-called. Web SQL Database. In fact, implemented in sqlite. But the databases lie in sandboxes and it’s not easy to read from the disk.
You can write a simple function that will fill the dump. But in the end, in order to work with such a database, you need to know its structure, because sqlite in browsers is quite truncated and there are problems with reflection.

V
Vampiro, 2012-02-29
@Vampiro

IMHO by googling "SQLite Browser" you can find a viewer for your tablet. Allowing JS to view arbitrary files from the user's disk is a huge security hole.

N
Nikita Sklyuev, 2012-03-01
@trilodi

Thank you all, so there is no way to implement this!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question