From c9779e27bb041da25275d1c7cfcdc54232356d64 Mon Sep 17 00:00:00 2001 From: oof1lab Date: Mon, 20 Nov 2017 13:28:03 +0530 Subject: [PATCH] refactor : only join, left join and right join supported --- README.md | 9 ++++++--- lib/xapi.js | 3 --- lib/xsql.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d4e74f3882..f94a27fb87 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,10 @@ http://localhost:3000 ```
-That is it! Happy hackery! +That is it! Simple and minimalistic. + +Happy hackery! + @@ -709,9 +712,9 @@ http://localhost:3000/api/payments/autochart ### Xjoin query params and values: ``` -_join : List of tableNames alternated by type of join to be made (_j, _ij,_ lj, _rj, _fj) +_join : List of tableNames alternated by type of join to be made (_j, _ij,_ lj, _rj) alias.tableName : TableName as alias -_j : Join [ _j => join, _ij => ij, _lj => left join , _rj => right join , _fj => full join) +_j : Join [ _j => join, _ij => ij, _lj => left join , _rj => right join) _onNumber : Number 'n' indicates condition to be applied for 'n'th join between (n-1) and 'n'th table in list ``` diff --git a/lib/xapi.js b/lib/xapi.js index aaae5d0a84..d447557b56 100644 --- a/lib/xapi.js +++ b/lib/xapi.js @@ -735,13 +735,10 @@ class Xapi { if (req.query) { let isRange = false - if (req.query.range) { - isRange = true } - if (req.query && req.query.min && req.query.max && req.query.step) { //console.log(req.params.min, req.params.max, req.params.step); diff --git a/lib/xsql.js b/lib/xsql.js index d35a9805a7..4f89a52baa 100644 --- a/lib/xsql.js +++ b/lib/xsql.js @@ -621,9 +621,9 @@ class Xsql { return ' right join ' break; - case '_fj': - return ' full join ' - break; + // case '_fj': + // return ' full join ' + // break; case '_ij': return ' inner join '