From 269e828725792d5c457c67f61031e4b15f73ef02 Mon Sep 17 00:00:00 2001 From: Eduard Poddubskij Date: Wed, 16 Apr 2025 15:49:19 +0300 Subject: [PATCH 1/2] [update] README.md --- README.md | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 9352fe1..a66b6cb 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,20 @@ JSON to SQL Query Converts JSON config to SQL Query -```json +```js { "glue": "and", - "rules": [{ - "field": "age", - "filter": "less", - "value": 42 - },{ - "field": "region", - "includes": [1,2,6] - }] + "rules": [ + { + "field": "age", + "filter": "less", + "value": 42 + }, + { + "field": "region", + "includes": [1,2,6] + } + ] } ``` @@ -38,7 +41,7 @@ Converts JSON config to SQL Query Blocks can be nested like next -```json +```js { "glue": "and", "rules": [ @@ -48,9 +51,9 @@ Blocks can be nested like next "rules": [ ruleC, ruleD - ] + ] } - ] + ] } ``` @@ -58,12 +61,15 @@ Blocks can be nested like next For those operations, both start and end values can be provided -```json +```js { - "field":"age", - "filter": "between", - "value": { "start": 10, "end": 99 } + "field": "age", + "filter": "between", + "value": { + "start": 10, + "end": 99 } +} ``` if only *start* or *end* provided, the operation will change to *less* or *greater* automatically \ No newline at end of file From fe1e17b159fdd12c022300862c6b6d99132cbab6 Mon Sep 17 00:00:00 2001 From: Eduard Poddubskij Date: Wed, 16 Apr 2025 15:50:31 +0300 Subject: [PATCH 2/2] [update] major version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 81bb58e..a83c9c5 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/xbsoftware/querysql +module github.com/xbsoftware/querysql/v2 go 1.13