From 1780a69f4fc06efe0f2278aaf474c68c8164984d Mon Sep 17 00:00:00 2001 From: StoneT2000 Date: Tue, 30 Jul 2019 15:46:32 +0800 Subject: [PATCH] Update readme.md --- src/connector/nodejs/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connector/nodejs/readme.md b/src/connector/nodejs/readme.md index 685dd3cf30..627a2ed9b2 100644 --- a/src/connector/nodejs/readme.md +++ b/src/connector/nodejs/readme.md @@ -135,8 +135,8 @@ Async queries can be performed using the same functions such as `cursor.execute` Say you want to execute an two async query on two seperate tables, using `cursor.query_a`, you can do that and get a TaosQuery object, which upon executing with the `execute_a` function, returns a promise that resolves with a TaosResult object. ```javascript -var promise1 = cursor.query_a('select count(*), avg(v1), avg(v2) from meter1;').execute_a() -var promise2 = cursor.query_a('select count(*), avg(v1), avg(v2) from meter2;').execute_a(); +var promise1 = cursor.query('select count(*), avg(v1), avg(v2) from meter1;').execute_a() +var promise2 = cursor.query('select count(*), avg(v1), avg(v2) from meter2;').execute_a(); promise1.then(function(result) { result.pretty(); }) @@ -158,4 +158,4 @@ Please follow the [contribution guidelines](https://github.com/taosdata/TDengine ## License -[GNU AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html) \ No newline at end of file +[GNU AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html) -- GitLab