javascripthtmlsyntaxindexeddbweb-sql

WebSQL syntax on IndexedDb


I have an application that use WebSQL. I want to support IndexedDB too (For Browsers without WebSql support). Is there any libary that use sql-syntax but works with indexedDB / LocalStorage in background?

I don't want to change all my querys and functions.

All libraries i found uses IndexedDb syntax and support WebSql. (Not what I need).

Thanks :)


Solution

  • You can use my library, ydn-db, for very simple sql query, which works with any web database.

    For near full support for SQL, check out commercial SequelSphere js library http://www.sequelsphere.com/docs/latest/doc/Supported%20SQL.html. Unfortunately query execution is in-memory currently. Pricing is outrageously greedy.