1

We are developing a Javascript based UI(browser based) that needs some data selection (filtering, sorting, grouping in different levels)I just want to ask about probable Javascript (sql or nosql/JSON) client side (not HTML5) database libraries, also a performance comparison would be really helpful.

Thanks.

2 Answers 2

1

similar question at https://stackoverflow.com/a/4778046/942855

Support level in browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)#Related_specifications

NO HTML5

Sign up to request clarification or add additional context in comments.

1 Comment

thank you but in the question I asked for NOT HTML5 solutions I mean pure javascript solution not browser storage
0

You can try Alasql JavaScript SQL library. It doest not use IndexedDB and WebSQL (i.e. HTML5 databases), but work in memory. It is relatively fast, because Alasql compiles queries to JavaScript code (see some tests at Github).

Here is the simple sample:

<script src="alasql.min.js"></script>
<script>
   var cities = [{city:'Kyiv',country:'Ukraine'}, {city:'Odessa', country:'Ukraine'}, 
                 {city:'Vienna', country:'Austria'}];
   var res = alasql('SELECT country, COUNT(*) AS cnt FROM ? \
                       GROUP BY country ORDER BY cnt',[cities]);
   console.log(res);
</script>

You can play with this example at jsFiddle.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.