LocalStorage 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
defineDatabase
-
dbName
-
version
-
tables
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
getNextFreePos
()
protected
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
initializePositions
()
protected
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)
readTableItem
-
dbDef
-
dbName
-
table
-
key
-
matches
-
reviver
readTableItems
-
dbDef
-
dbName
-
table
-
prop
-
matches
-
reviver
-
deleteMatch
removeTableItem
-
dbDef
-
dbName
-
table
-
pos
save
-
table
-
records
-
overwriteUnique
Saves a record. Returns an undefined promise when ready.
Returns:
Returnvalue of the fulfilled promise is undefined