{"id":24333089,"url":"https://github.com/chillerno1/node-red-contrib-mysql-config","last_synced_at":"2025-08-03T06:37:13.175Z","repository":{"id":41053554,"uuid":"508093025","full_name":"chillerno1/node-red-contrib-mysql-config","owner":"chillerno1","description":"Fork of node-red-contrib-stackhero-mysql that allows config to be set via environment variables.","archived":false,"fork":false,"pushed_at":"2022-07-18T00:08:43.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-16T03:51:01.325Z","etag":null,"topics":["mysql","node-js","node-red","node-red-contrib"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chillerno1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-27T23:39:44.000Z","updated_at":"2023-03-08T00:59:10.000Z","dependencies_parsed_at":"2022-09-20T21:52:01.382Z","dependency_job_id":null,"html_url":"https://github.com/chillerno1/node-red-contrib-mysql-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerno1%2Fnode-red-contrib-mysql-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerno1%2Fnode-red-contrib-mysql-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerno1%2Fnode-red-contrib-mysql-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerno1%2Fnode-red-contrib-mysql-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chillerno1","download_url":"https://codeload.github.com/chillerno1/node-red-contrib-mysql-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234455954,"owners_count":18835667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mysql","node-js","node-red","node-red-contrib"],"created_at":"2025-01-18T03:13:06.604Z","updated_at":"2025-01-18T03:13:07.221Z","avatar_url":"https://github.com/chillerno1.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-red-contrib-mysql-config\n\n[Node-RED](https://nodered.org) node to read and write to a MySQL or a MariaDB database.\n\n## Foreword\n\n**Note:** All credit for this work goes to the original creator(s): [https://github.com/stackhero-io/node-red-contrib-stackhero-mysql](https://github.com/stackhero-io/node-red-contrib-stackhero-mysql)\n\nThis is a fork for the purpose of configuring a connection using environment variables. \n\n## Use Case\n\nThe primary use case for using this version is in instances where NodeRED changes are being deployed using CI/CD pipelines across multiple environments and credentials need to be configured using environment variables as opposed to manually setting them in the NodeRED UI. \n\n## Configuration\n\nIn order to configure this node, set each of the inputs with it's environment variable name. \n\n![](assets/mysql-config-setup.png)\n\n## Usage\n\nThis node is really simple.\n\nPut your query in the `topic` variable and, if you have arguments, put them in an object in the `payload` variable.\nYou will get the result in the `payload` output variable.\n\nExample:\n\n```javascript\nmsg.topic = 'SELECT * FROM `users` WHERE `name` = :name AND `age` \u003e :age;';\nmsg.payload = { name: 'Adrien', age: 30 };\nreturn msg;\n```\n\n\u003e Avoid SQL injections!!\n\u003e\n\u003e Do not NEVER EVER put variables content in `topic` directly!\n\u003e Always use the `payload` variable to pass your arguments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerno1%2Fnode-red-contrib-mysql-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchillerno1%2Fnode-red-contrib-mysql-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerno1%2Fnode-red-contrib-mysql-config/lists"}