IndexedDBAdapter Class
Class of query language adapter that allows to load data from IndexedDB.
Constructor
IndexedDBAdapter
(
-
moment
Parameters:
-
moment
MomentMoment service.
Item Index
Methods
Methods
buildFunc
(
Function
-
query
Builds JS function for filtering JS array of objects by specified logic from query.
Parameters:
-
query
ObjectQuery language instance.
Returns:
Function:
Function for filtering JS array of objects.
containsRelationships
(
Boolean
-
query
Checks query on contains restrictions by relationships.
Parameters:
-
query
QueryObject
Returns:
query
(
Promise
-
store
-
query
Loads data from IndexedDB.
Parameters:
-
store
DS.Store or subclassStore instance to the adapter.
-
query
QueryObjectQueryObject instance to the adapter.
Returns:
Promise:
Promise with loaded data.