Is it possible to read/write to a local database inside a chrome extension?

31 views
Skip to first unread message

Benjamin Moses Lieb

unread,
Sep 10, 2017, 3:28:12 PM9/10/17
to Chromium-Extensions-Announce

: Is it possible to read/write to a local database inside a chrome extension?  I'm making a chrome extension that will need to look up information in med sized data files that will come with the extension, but would prefer sql.

What options are available?

Thanks!

Ben

PhistucK

unread,
Sep 10, 2017, 4:45:58 PM9/10/17
to Benjamin Moses Lieb, Chromium-Extensions-Announce
You cannot run SQL queries on actual files (raw SQLite access is not available).
The deprecated Web SQL Databases are available, but you will have to put the data there first.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/49b94ede-1708-484b-ad0b-e7f84604a042%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Chuck Baker

unread,
Sep 10, 2017, 6:07:35 PM9/10/17
to Chromium-Extensions-Announce
I have used TaffyDb (http://taffydb.com/) and store/load it from Chrome localStorage.  It suits all my needs so far.
Reply all
Reply to author
Forward
0 new messages