@live-change/framework 0.5.15 → 0.5.16
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 +13 -0
- package/package.json +1 -1
package/lib/App.js
CHANGED
|
@@ -388,6 +388,19 @@ class App {
|
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
|
|
392
|
+
query(query, params) {
|
|
393
|
+
return ['database', 'query', this.databaseName, `(${ query }}`, params]
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
queryGet(query, params) {
|
|
397
|
+
return this.dao.get(this.query(query, params))
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
queryObservable(query, params) {
|
|
401
|
+
return this.dao.observable(this.query(query, params))
|
|
402
|
+
}
|
|
403
|
+
|
|
391
404
|
async close() {
|
|
392
405
|
for(const timeout of this.activeTimeouts) {
|
|
393
406
|
clearTimeout(timeout)
|