Show:
Extends Query.BaseAdapter
Module: ember-flexberry-data

Class of query language adapter that allows to load data from IndexedDB.

Constructor

IndexedDBAdapter

(
  • moment
)

Parameters:

  • moment Moment

    Moment service.

Methods

buildFunc

(
  • query
)
Function

Builds JS function for filtering JS array of objects by specified logic from query.

Parameters:

  • query Object

    Query language instance.

Returns:

Function:

Function for filtering JS array of objects.

containsRelationships

(
  • query
)
Boolean

Checks query on contains restrictions by relationships.

Parameters:

Returns:

query

(
  • store
  • query
)
Promise

Loads data from IndexedDB.

Parameters:

  • store DS.Store or subclass

    Store instance to the adapter.

  • query QueryObject

    QueryObject instance to the adapter.

Returns:

Promise:

Promise with loaded data.