How to read the data from indexed DB?

■ Reference Sites
- https://developer.tizen.org/documentation/articles/indexeddb?langredirect=1
- http://www.w3.org/TR/IndexedDB
var transaction = db.transaction(DB_TABLE_NAME, "readonly"),

idbObjectStore = transaction.objectStore(DB_TABLE_NAME);
idbObjectStore.openCursor().onsuccess = function(e) {
    var cursor = e.target.result;

    if (cursor) {
        // TODO
        cursor.continue();
    } else {
        // TODO
    }
};

Responses

0 Replies