IndexedDB — how to add one record how to remove and how to change?

Below the code that I have correct it?
how to add a single record ?
how to remove a single entry ?
how to change a single record ?

indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
transactionDb = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
nameDatabase = "general_darabase";

createIndexedDatabase function(nameBase, ver){// create a database
 return indexedDB.open(nameBase, ver);//createIndexedDatabase("general_darabase")
}
function createIndexedDatabaseTable(nameTable, request){// create table
 return request.result.createObjectStore(nameTable, {keyPath: "i"});//createIndexedDatabaseTable("user", request);
}
function setDatabase(){
 var request = createIndexedDatabase("general_darabase", 1);// call the function to create database
 request.onupgradeneeded = function(){
 var data = createIndexedDatabaseTable("user", request);// call the function to create database table
 data.put({i: 0, user: 'user1', password: 123456789}); // add data
 data.put({i: 1, user: 'user2', password: 123456789}); // add data
 data.put({i: 2, user: 'user3', password: 123456789}); // add data
};
}
deleteIndexedDatabase function(nameBase){// delete database
 return indexedDB.deleteDatabase(nameBase);//deleteIndexedDatabase("general_darabase")
}

//setDatabase()

//deleteIndexedDatabase(nameDatabase)
September 26th 19 at 11:28
3 answers
September 26th 19 at 11:30
can watch ready-made solution ydn-db
in this article, it is used habrahabr.ru/post/191850
Ready decisions it is someone else's code. With the exception of jquery don't think that's the true test if you really want to programming and not ctrl+c, ctrl+v - Germaine.Hodkiewicz commented on September 26th 19 at 11:33
no one is talking about ctrl+c/ctrl+v - just on other people's implementations easier to understand. - kendrick67 commented on September 26th 19 at 11:36
"and in this article she is" nothing describes php.net//manual/ru/function.count.php->parameter List->(var[Array or object.],mode-count() will recursively count the number of elements in the array.)
It is clear.
And here it is habrahabr.ru/post/191850 no - Germaine.Hodkiewicz commented on September 26th 19 at 11:39

Well, don't look at it as a finished instrument. View the source code of the library, think about solutions that are offered in it for certain tasks, etc. indexedDB Fesor gave good links that have answers to your questions. jquery is also turnkey solution and also somebody else's code. - scottie.Walk commented on September 26th 19 at 11:42
September 26th 19 at 11:32
habrahabr.ru/post/213515 read this + the comments (they slipped references to the wrapper).
I've read - Germaine.Hodkiewicz commented on September 26th 19 at 11:35
then here, there's a more simple language it is written:
www.html5rocks.com/ru/tutorials/indexeddb/todo - kendrick67 commented on September 26th 19 at 11:38
Too - Germaine.Hodkiewicz commented on September 26th 19 at 11:41
then open the essence of the question that you do not go out? - scottie.Walk commented on September 26th 19 at 11:44
,
I don't understand the General principle because there's no description, there is only pedologist.
Expect that

indexedDB.open() if no base will create it if otkroet are passed 2 arguments:
1. The created database name
2. Database version (I don't know which version is it correct to assume that it was acceptable to say 666)
so sodali and got to it well
createObjectStore(the name of the table and what is in that key where Kaew where I can find it?)
and then code all and no descriptions, no
I say
Created the database created the table
now write down there chenit
var request = createIndexedDatabase("general_darabase", 1);
request.onupgradeneeded = function(){// where is it written what does this mean? I understand that indicates when the connection is made
var data = createIndexedDatabaseTable("user", request);// create the table
data.put({i: 0, user: 'user1', password: 123456789});// write the data
then why if you repeat the same example with data.put({i: 1, user: 'user2', password: 123456789}); then no new entry is added? - Germaine.Hodkiewicz commented on September 26th 19 at 11:47
September 26th 19 at 11:34
Cap were those that found the links in google and put them in the post

Find more questions by tags JavaScript