Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript SQL database

Tags:

javascript

I'm wanting to deliver some data from the server-side to some client-side Javascript which can use said data to construct a database/table, and then query it using some user-input SQL.

Persistence of data isn't what I'm looking for, so HTML5 stuff like localStorage isn't relevant, I'm only wanting to be able to create something like a mini-database in Javascript to query.

Is there any Javascript libraries that have this capability?

Thanks.

like image 658
Daniel Avatar asked Aug 28 '10 07:08

Daniel


2 Answers

Take a look at TrimQuery.

like image 96
Luca Matteis Avatar answered Oct 02 '22 14:10

Luca Matteis


I'd take a look at TaffyDB. It's a database implemented in JavaScript that you can 'query' with objects that resemble where clauses. It's not identical to SQL, but it's close enough that if you're already trusting your users to write queries they should be able to get the hang of it.

like image 30
g.d.d.c Avatar answered Oct 02 '22 15:10

g.d.d.c