Is it possible to get all column names from indexeddb? or how can I map the results which are coming from indexeddb and append to object
var data = new FormData();
var myDB = window.indexedDB.open("myDb");
myDB.onsuccess = function () {
this.result.transaction("myTable").objectStore("myTable").getAll().onsuccess = function (event) {
var result = event.target.result;
$.each(result, function (i, tableData) {
// I would like to map all column data and append to an object
data.append("colName","ColValue"); // I would like the column name to be dynamic here instead of hardcode like say if
I have column name like Name, Address I would like to append to object.
});
}
Here is how it looks like my sample data in indexeddb