IndexedDB Class
Creating floating Panel-nodes which can be shown and hidden.
Copyright (c) 2014 ITSA - https://github.com/itsa New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Item Index
Methods
clear
-
table
Empties the table.
Parameters:
-
table
String
Returns:
Returnvalue of the fulfilled promise is undefined
contains
-
table
-
obj
Checks whether a table has a containes a specified record, not by reference, by by checking its property-values
Returns:
Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record
delete
-
table
-
prop
-
matches
Deletes all records of the table that have a match, defined by the matches
the prop
Returns:
Returnvalue of the fulfilled promise is an Array with all records that have been deleted
deleteDatabase
()
Promise
Deletes a database from the client
Returns:
Returnvalue of the fulfilled promise is undefined
each
-
table
-
fn
-
context
Performs a function to all the records of the table
Returns:
Returnvalue of the fulfilled promise is undefined
getList
-
db
-
table
-
cursorProp
-
prop
-
matches
-
deleteMatch
Gets a list (Array) of records
Parameters:
Returns:
Returnvalue of the fulfilled promise is an Array with Objects (records)
getRecordByIndex
-
db
-
table
-
key
-
match
Gets a record
Returns:
Returnvalue of the fulfilled promise is an Object (record)
has
-
table
-
prop
-
matches
Checks whether a table has a matched record, defined by the matches
the prop
Returns:
Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record
readAll
-
table
Retrieves all records of the table
Parameters:
-
table
String
Returns:
Returnvalue of the fulfilled promise is an Array with all Objects (records) within the table
readMany
-
table
-
prop
-
matches
Reads multiple records, specified by matches
.
Returns:
Returnvalue of the fulfilled promise is an Array with Objects (records)
readOneByKey
-
table
-
key
-
matches
Reads one record, specified by its key
.
Returns:
Returnvalue of the fulfilled promise is an Object (record)
save
-
table
-
records
-
overwriteUnique
Saves a record. Returns an undefined promise when ready.
Returns:
Returnvalue of the fulfilled promise is undefined
saveRecord
-
database
-
table
-
record
-
overwriteUnique
-
uniqueIndexes
Saves a record. Returns an empty promise when finished.
Parameters:
Returns:
Returnvalue is undefined