Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use joins in HTML5 Indexed Db?

I do want to join two table in HTML5 indexed db. I found lot samples to add, Update, Delete and listing record but can't found any samples to join multiple table.

  • Sample URL: *http://users.telenet.be/kristofdegrave/*
like image 731
muthuvel Avatar asked Aug 14 '12 10:08

muthuvel


1 Answers

Was wondering the same question when just generally looking at these technologies. Did not check your particular example, but here is an example from Mozilla on how to do a join if you need it:

https://hacks.mozilla.org/2010/06/comparing-indexeddb-and-webdatabase/

It is quite a lot of code compared to SQL, but I think the idea is that abstracting these using JavaScript later is quite easy.

like image 123
Ope Avatar answered Oct 28 '22 10:10

Ope