View Source Sorcery.Storage.GenserverAdapter.Query (Sorcery v0.2.3)

Link to this section Summary

Functions

Given a list of ALL connected portals, return a list of pids, such that at least one of their portals is affected by the qmeta. Careful, we're potentially working with huge amounts of data.

Determine if a portal is observing any of the entities in the qmeta

Given a list of portals, recalculate such that

Given a portal, return a db of entities satisfying it.

Given a list of portals, return a db of entities satisfying it.

Link to this section Functions

Link to this function

affected_pids(all_portals, qmeta)

View Source

Given a list of ALL connected portals, return a list of pids, such that at least one of their portals is affected by the qmeta. Careful, we're potentially working with huge amounts of data.

Link to this function

affects_portal?(portal, qmeta)

View Source

Determine if a portal is observing any of the entities in the qmeta

Link to this function

affects_portals?(portals, qmeta)

View Source
Link to this function

entity_matches_clause?(entity, arg)

View Source
Link to this function

portal_watching_entity?(portal, entity)

View Source
Link to this function

resolve_portal(portals, state)

View Source

Given a list of portals, recalculate such that:

  1. Every tuple of {ref, attr} in a guard will become a MapSet of values in the resolve_guard.
  2. Every entity matching the portal will be found, and indexed
Link to this function

solve_portal(portal, qmeta)

View Source

Given a portal, return a db of entities satisfying it.

Link to this function

solve_portals(portals, qmeta)

View Source

Given a list of portals, return a db of entities satisfying it.