yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

Feature Request - Synchronous version of .put() and .add() methods #103

Closed LeftPinkie closed 8 years ago

LeftPinkie commented 8 years ago

Currently, .put() and .add() methods of ydn.db.Storage is asynchronous. This is a request for a synchronous version of these methods, either as separate methods or an optional parameter.

Class: ydn.db.Storage Methods: .add() and .put()

yathit commented 8 years ago

According to indexedDB API version 1, only asynchronous version will be supported. So it is not possible to provide synchronous methods by the library.