0

I am creating an application to save data locally using IndexexDB. Is there any way to get and insert bulk data from a indexed DB as json.This is what i have done so far

var request = store.openCursor();
    request.onsuccess = function(evt) {  
        var cursor = evt.target.result;  
        if (cursor) {  
            alert("id: " + cursor.key + " is " + cursor.value.name + " ");

            cursor.continue();  
        }  
        else {  
            console.log("No more entries!");  
        }  

};

1 Answer 1

1

What you are doing is the best way. Indexeddb does not have high level api.

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

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.