This Ember-Data adapter will fetch and save all data to/from IndexedDB.
Methods
Properties
_logDuration
(
private
-
str
-
isEnd
This function is used to log durations of operations to the console, if _shouldLogDurations
is set.
_normalizeArray
(
Object
private
-
records
This is used to normalize the response of IndexedDB for array responses.
Parameters:
-
records
Object
Returns:
_normalizeSingle
(
Object
private
-
record
This is used to normalize a single record response.
Parameters:
-
record
Object
Returns:
_save
(
Promise
private
-
store
-
type
-
snapshot
This function is called under the hood by both createRecord
and updateRecord
.
Returns:
findMany
(
Promise
public
-
store
-
type
-
ids
Find many records for a given type by multiple IDs.
Returns:
findRecord
(
Promise
public
-
store
-
type
-
id
Find a record of a given type & ID from IndexedDB.
Returns:
generateIdForRecord
()
String
protected
This function will generate a GUID to be used in IndexedDB.
Returns:
query
(
Promise
public
-
store
-
type
-
query
Query a type from IndexedDB. This will try to use real indices where possible.
Returns:
queryRecord
(
Promise
public
-
store
-
type
-
query
Query a single item from IndexedDB. This will try to use real indices where possible.