@live-change/framework 0.5.17 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/App.js +12 -0
- package/package.json +1 -1
package/lib/App.js
CHANGED
|
@@ -401,6 +401,18 @@ class App {
|
|
|
401
401
|
return this.dao.observable(this.query(query, params))
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
queryObject(query, params) {
|
|
405
|
+
return ['database', 'queryObject', this.databaseName, `(${ query })`, params]
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
queryObjectGet(query, params) {
|
|
409
|
+
return this.dao.get(this.queryObject(query, params))
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
queryObjectObservable(query, params) {
|
|
413
|
+
return this.dao.observable(this.queryObject(query, params))
|
|
414
|
+
}
|
|
415
|
+
|
|
404
416
|
async close() {
|
|
405
417
|
for(const timeout of this.activeTimeouts) {
|
|
406
418
|
clearTimeout(timeout)
|