{"id":39175510,"url":"https://github.com/xbsoftware/querysql-node","last_synced_at":"2026-01-17T22:28:04.678Z","repository":{"id":47060301,"uuid":"257593187","full_name":"xbsoftware/querysql-node","owner":"xbsoftware","description":"Generate SQL query from json configuration","archived":false,"fork":false,"pushed_at":"2021-09-15T09:42:24.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T04:38:17.326Z","etag":null,"topics":["webix-query"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xbsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-21T12:46:39.000Z","updated_at":"2022-12-22T12:03:06.000Z","dependencies_parsed_at":"2022-09-05T12:00:48.990Z","dependency_job_id":null,"html_url":"https://github.com/xbsoftware/querysql-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xbsoftware/querysql-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fquerysql-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fquerysql-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fquerysql-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fquerysql-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xbsoftware","download_url":"https://codeload.github.com/xbsoftware/querysql-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fquerysql-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28520502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["webix-query"],"created_at":"2026-01-17T22:28:04.052Z","updated_at":"2026-01-17T22:28:04.672Z","avatar_url":"https://github.com/xbsoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSON to SQL Query\n==================\n\nConverts JSON config to SQL Query\n\n```json\n{\n  \"glue\": \"and\",\n  \"rules\": [{\n    \"field\":\"age\",\n    \"condition\":{\n      \"type\": \"less\",\n      \"filter\": 42\n    } \n  },{\n    \"field\":\"region\",\n    \"includes\": [1,2,6]\n  }] \n}\n```\n\n### Supported operations ( type )\n\n- equal\n- notEqual\n- contains\n- notContains\n- lessOrEqual\n- greaterOrEqual\n- less\n- notBetween\n- between\n- greater\n- beginsWith\n- notBeginsWith\n- endsWith\n- notEndsWith\n\n### nesting\n\nBlocks can be nested like next\n\n```json\n{\n  \"glue\": \"and\",\n  \"rules\": [\n    ruleA,\n    {\n      \"glue\": \"or\",\n      \"rules\": [\n        ruleC,\n        ruleD\n      ] \n    }\n  ] \n}\n```\n\n### between / notBetween\n\nFor those operations, both start and end values can be provided\n\n```json\n{\n    \"field\":\"age\",\n    \"condition\":{\n      \"type\": \"between\",\n      \"filter\": { \"start\": 10, \"end\": 99 }\n    } \n  }\n```\n\nif only *start* is provided the operation will automatically change to *less* (notBetween) or *greaterOrEqual* (between)\n\nif only *end* is provided the operation will automatically change to *greater* (notBetween) or *lessOrEqual* (between)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxbsoftware%2Fquerysql-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxbsoftware%2Fquerysql-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxbsoftware%2Fquerysql-node/lists"}