{"id":21906036,"url":"https://github.com/hkjang/node-red-contrib-xmysql","last_synced_at":"2026-04-19T19:04:47.106Z","repository":{"id":57154367,"uuid":"291206662","full_name":"hkjang/node-red-contrib-xmysql","owner":"hkjang","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-29T22:31:18.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-24T18:22:57.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hkjang.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-08-29T05:22:37.000Z","updated_at":"2020-11-30T11:22:29.000Z","dependencies_parsed_at":"2022-09-06T15:41:01.379Z","dependency_job_id":null,"html_url":"https://github.com/hkjang/node-red-contrib-xmysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hkjang/node-red-contrib-xmysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-xmysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-xmysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-xmysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-xmysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkjang","download_url":"https://codeload.github.com/hkjang/node-red-contrib-xmysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkjang%2Fnode-red-contrib-xmysql/sbom","scorecard":{"id":466183,"data":{"date":"2025-08-11","repo":{"name":"github.com/hkjang/node-red-contrib-xmysql","commit":"45c6f585730e9f84a9615951fc0c0a0e4b42e050"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T12:33:58.344Z","repository_id":57154367,"created_at":"2025-08-19T12:33:58.344Z","updated_at":"2025-08-19T12:33:58.344Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32018765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-28T16:40:18.816Z","updated_at":"2026-04-19T19:04:47.087Z","avatar_url":"https://github.com/hkjang.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/gagagiga"],"categories":[],"sub_categories":[],"readme":"node-red-contrib-xmysql\n========================\nA \u003ca href=\"http://nodered.org\" target=\"_new\"\u003eNode-RED\u003c/a\u003e \nnode to get response to  \u003ca href=\"https://github.com/o1lab/xmysql\" target=\"_new\"\u003e xmysql api \u003c/a\u003e.\n\nInstall\n-------\nRun the following command in the root directory of your Node-RED install:\n\n    npm install node-red-contrib-xmysql\n\nUsage\n-----\n## xmysql API \n\u003ci\u003e\u003ca href=\"https://github.com/o1lab/xmysql\" target=\"_new\"\u003exmysql\u003c/a\u003e\u003c/i\u003e api request node.\n\nExpects a \u003cb\u003emsg.payload\u003c/b\u003e with request(get,post,put,patch,delete) params.\n\n\u003ca href=\"https://www.buymeacoffee.com/gagagiga\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n## API Overview\n\n| HTTP Type | API URL                          | Comments                                               |\n|-----------|----------------------------------|--------------------------------------------------------- \n| GET       | /                                | Gets all REST APIs                                     |\n| GET       | /api/tableName                   | Lists rows of table                                    |\n| POST      | /api/tableName                   | Create a new row                                       |\n| PUT       | /api/tableName                   | Replaces existing row with new row                     |\n| POST :fire:| /api/tableName/bulk             | Create multiple rows - send object array in request body|\n| GET  :fire:| /api/tableName/bulk             | Lists multiple rows - /api/tableName/bulk?_ids=1,2,3   |\n| DELETE :fire:| /api/tableName/bulk           | Deletes multiple rows - /api/tableName/bulk?_ids=1,2,3 |\n| GET       | /api/tableName/:id               | Retrieves a row by primary key                         |\n| PATCH     | /api/tableName/:id               | Updates row element by primary key                     |\n| DELETE    | /api/tableName/:id               | Delete a row by primary key                            |\n| GET       | /api/tableName/findOne           | Works as list but gets single record matching criteria |\n| GET       | /api/tableName/count             | Count number of rows in a table                        |\n| GET       | /api/tableName/distinct          | Distinct row(s) in table - /api/tableName/distinct?_fields=col1|\n| GET       | /api/tableName/:id/exists        | True or false whether a row exists or not              |\n| GET       | [/api/parentTable/:id/childTable](https://github.com/o1lab/xmysql#relational-tables)             | Get list of child table rows with parent table foreign key   | \n| GET :fire:| [/api/tableName/aggregate](https://github.com/o1lab/xmysql#aggregate-functions)                  | Aggregate results of numeric column(s)                 |\n| GET :fire:| [/api/tableName/groupby](https://github.com/o1lab/xmysql#group-by-having-as-api)                 | Group by results of column(s)                          |\n| GET :fire:| [/api/tableName/ugroupby](https://github.com/o1lab/xmysql#union-of-multiple-group-by-statements) | Multiple group by results using one call               |\n| GET :fire:| [/api/tableName/chart](https://github.com/o1lab/xmysql#chart)                                    | Numeric column distribution based on (min,max,step) or(step array) or (automagic)|\n| GET :fire:| [/api/tableName/autochart](https://github.com/o1lab/xmysql#autochart)                            | Same as Chart but identifies which are numeric column automatically - gift for lazy while prototyping|\n| GET :fire:| [/api/xjoin](https://github.com/o1lab/xmysql#xjoin)                                              | handles join                                        |\n| GET :fire:| [/dynamic](https://github.com/o1lab/xmysql#run-dynamic-queries)                                  | execute dynamic mysql statements with params           |\n| GET :fire:| [/upload](https://github.com/o1lab/xmysql#upload-single-file)                                    | upload single file                                     |\n| GET :fire:| [/uploads](https://github.com/o1lab/xmysql#upload-multiple-files)                                | upload multiple files                                  |\n| GET :fire:| [/download](https://github.com/o1lab/xmysql#download-file)                                       | download a file                                        |\n| GET       | /api/tableName/describe                                           | describe each table for its columns      |\n| GET       | /api/tables                                                       | get all tables in database                           |\n| GET       | [/_health](https://github.com/o1lab/xmysql#health)                                               | gets health of process and mysql -- details query params for more details |\n| GET       | [/_version](https://github.com/o1lab/xmysql#version)                                             | gets version of Xmysql, mysql, node|\n\n\n### API URL\n\n- The url to call the xmysql API.\n\n### method\n\n- Http Request Method \n\n## parameter example\n\n```javascript\n# GET\nmsg.method = 'get';\n// msg.payload.id = '1598617946';\nmsg.payload.api = 'exists';\nmsg.payload.api = 'findOne';\nmsg.payload.api = 'count';\nmsg.payload.api = 'distinct';\nmsg.payload.api = 'groupby';\nmsg.payload.api = 'ugroupby';\nmsg.payload['_fields'] = 'it_name';\n// _fields=it_price\u0026min=0\u0026max=10000\u0026step=1000\nmsg.payload.api = 'chart';\nmsg.payload['_fields'] = 'it_price';\nmsg.payload['min'] = '0';\nmsg.payload['max'] = '10000';\nmsg.payload['step'] = '1000';\nmsg.payload.api = 'aggregate';\n\n# POST\nmsg.method = 'post'\nmsg.payload.price = '300';\nmsg.payload.tax = '30';\n\n# PUT\nmsg.method = 'put'\nmsg.payload.id = '2';\nmsg.payload.price = '400';\nmsg.payload.tax = '40';\n\n# DELETE\nmsg.method = 'delete'\nmsg.payload.id = '2';\n```\n\n## sample flow\n```json\n[{\"id\":\"a7bb362a.8529f8\",\"type\":\"xmysql\",\"z\":\"a1c6356a.515558\",\"xmysqlAPIURL\":\"http://localhost:3000\",\"tableName\":\"g5_shop_item\",\"x\":420,\"y\":40,\"wires\":[[\"aa46913c.7dce9\"]]},{\"id\":\"7141e340.8de68c\",\"type\":\"inject\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":110,\"y\":40,\"wires\":[[\"1504b988.e70b26\"]]},{\"id\":\"1504b988.e70b26\",\"type\":\"function\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"func\":\"\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":270,\"y\":40,\"wires\":[[\"a7bb362a.8529f8\"]]},{\"id\":\"5e3b6dc5.8ec834\",\"type\":\"debug\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":730,\"y\":40,\"wires\":[]},{\"id\":\"aa46913c.7dce9\",\"type\":\"json\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"property\":\"payload\",\"action\":\"\",\"pretty\":false,\"x\":570,\"y\":40,\"wires\":[[\"5e3b6dc5.8ec834\"]]},{\"id\":\"b5a12c75.c66c3\",\"type\":\"xmysql\",\"z\":\"a1c6356a.515558\",\"xmysqlAPIURL\":\"http://localhost:3000\",\"tableName\":\"g5_shop_item\",\"x\":420,\"y\":80,\"wires\":[[\"ab117167.5b9d4\"]]},{\"id\":\"770389a4.d4ba58\",\"type\":\"inject\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":110,\"y\":80,\"wires\":[[\"850c4a8f.d80fd8\"]]},{\"id\":\"850c4a8f.d80fd8\",\"type\":\"function\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"func\":\"msg = {};\\nmsg.payload = {};\\nmsg.method = 'get';\\n// msg.payload.id = '1598617946';\\n// msg.payload.id = '0';\\nmsg.payload.api = 'exists';\\nmsg.payload.api = 'findOne';\\nmsg.payload.api = 'count';\\nmsg.payload.api = 'distinct';\\nmsg.payload.api = 'groupby';\\nmsg.payload.api = 'ugroupby';\\nmsg.payload['_fields'] = 'it_name';\\n// _fields=it_price\u0026min=0\u0026max=10000\u0026step=1000\\nmsg.payload.api = 'chart';\\nmsg.payload['_fields'] = 'it_price';\\nmsg.payload['min'] = '0';\\nmsg.payload['max'] = '10000';\\nmsg.payload['step'] = '1000';\\nmsg.payload.api = 'aggregate';\\n\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":270,\"y\":80,\"wires\":[[\"b5a12c75.c66c3\"]]},{\"id\":\"9d9e60df.86174\",\"type\":\"debug\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":730,\"y\":80,\"wires\":[]},{\"id\":\"ab117167.5b9d4\",\"type\":\"json\",\"z\":\"a1c6356a.515558\",\"name\":\"\",\"property\":\"payload\",\"action\":\"\",\"pretty\":false,\"x\":570,\"y\":80,\"wires\":[[\"9d9e60df.86174\"]]}]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkjang%2Fnode-red-contrib-xmysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkjang%2Fnode-red-contrib-xmysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkjang%2Fnode-red-contrib-xmysql/lists"}