A library for data subscription and synchronization in single page applications.

Constants

AND → String

"\$and"
ASC → num

1
DESC → num

-1
dummyCache → dynamic

const DummyCache()
GT → String

"\$gt"
LOCK_COLLECTION_NAME → String

'__clean_lock'
LT → String

"\$lt"
NOLIMIT → num

0
NOSKIP → num

0
OR → String

"\$or"
ORDERBY → String

"\$orderby"
PUSH → String

"\$push"
QUERY → String

"\$query"
SET → String

"\$set"
UNSET → String

"\$unset"
VERSION_FIELD_NAME → String

'__clean_version'

Typedefs

DataGenerator(Map args) → Future<DataProvider>

Properties

historyCollectionName → Function

read-only
logger → Logger

read-only
MAX → int

read-only
prefix_random_part → int

read-only
profilingLogger → Logger

read / write
PUBLISHER → dynamic

read-only
watches → Map

read / write
watchID → dynamic

read / write

Functions

addFieldIfNotEmpty(List fields, String field) → List

getIdPrefix() → String

handleSyncRequest(request) → Future

isPublished(String collection) → bool

logElapsedTime(watchID) → dynamic

mpClone(MongoProvider source) MongoProvider

publish(String c, DataGenerator dg(Map args), {beforeRequest: null}) → void

startWatch(identifier) → num

stopWatch(watchID) → dynamic

Classes

Cache

DataProvider

DummyCache

Entry

MongoDatabase

MongoProvider

Publisher

Resource

Version

Exceptions / Errors

DiffNotPossibleException

MongoException