{"id":15999349,"url":"https://github.com/wcoder/node-mysql-connect","last_synced_at":"2025-04-05T01:14:39.213Z","repository":{"id":143897917,"uuid":"49772289","full_name":"wcoder/node-mysql-connect","owner":"wcoder","description":"Simple wrapper with additional functionality over node-mysql.","archived":false,"fork":false,"pushed_at":"2016-01-16T22:22:12.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T01:17:11.411Z","etag":null,"topics":["javascript","mysql","node-mysql","nodejs","wrapper"],"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/wcoder.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":"2016-01-16T12:21:53.000Z","updated_at":"2021-11-29T06:26:56.000Z","dependencies_parsed_at":"2023-03-21T09:54:55.181Z","dependency_job_id":null,"html_url":"https://github.com/wcoder/node-mysql-connect","commit_stats":null,"previous_names":["wcoder/node-mysql-wrapper"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Fnode-mysql-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Fnode-mysql-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Fnode-mysql-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcoder%2Fnode-mysql-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wcoder","download_url":"https://codeload.github.com/wcoder/node-mysql-connect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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":["javascript","mysql","node-mysql","nodejs","wrapper"],"created_at":"2024-10-08T08:42:29.730Z","updated_at":"2025-04-05T01:14:39.188Z","avatar_url":"https://github.com/wcoder.png","language":"JavaScript","readme":"# node-mysql-wrapper\n\nSimple wrapper with additional functionality over node-mysql.\n\n## Install\n```\nnpm i node-mysql-connect --save\n```\n\n## Using\nMinimal config:\n```js\nvar config = {\n\tuser: '\u003cyour_user\u003e',\n\tpassword: '\u003cyour_password\u003e',\n\tdatabase: '\u003cyour_database_name\u003e'\n};\n```\nInclude and initialize module:\n```js\nvar connection = require('node-mysql-connect')(config);\n```\nDo query:\n```js\nconnection.query(\"SELECT * FROM \u003cyour_table\u003e\", function (err, data) {\n\tif (err) throw err;\n\n\t// working with data ...\n});\n```\nQuery with params:\n```js\nconnection.query(\"SELECT * FROM \u003cyour_table\u003e WHERE a = ? AND b = ?\", [a, b], function (err, data) {\n\tif (err) throw err;\n\n\t// working with data ...\n});\n```\n\n## Configuration\n`logger` - enable logging:\n```js\nvar config = {\n\t//...\n\tlogger: console.log // for example\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcoder%2Fnode-mysql-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwcoder%2Fnode-mysql-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcoder%2Fnode-mysql-connect/lists"}