{"id":18873418,"url":"https://github.com/christianmalek/node-mysql-es6-query","last_synced_at":"2026-04-18T07:32:03.790Z","repository":{"id":77280427,"uuid":"49346027","full_name":"christianmalek/node-mysql-es6-query","owner":"christianmalek","description":"A helper function to build queries with ES6 template strings.","archived":false,"fork":false,"pushed_at":"2016-01-09T23:44:44.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T19:51:32.458Z","etag":null,"topics":["es6","mysql","node-mysql","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/christianmalek.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":"2016-01-09T23:37:36.000Z","updated_at":"2017-03-14T14:44:01.000Z","dependencies_parsed_at":"2023-03-17T12:45:17.674Z","dependency_job_id":null,"html_url":"https://github.com/christianmalek/node-mysql-es6-query","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/christianmalek/node-mysql-es6-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianmalek%2Fnode-mysql-es6-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianmalek%2Fnode-mysql-es6-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianmalek%2Fnode-mysql-es6-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianmalek%2Fnode-mysql-es6-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christianmalek","download_url":"https://codeload.github.com/christianmalek/node-mysql-es6-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianmalek%2Fnode-mysql-es6-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["es6","mysql","node-mysql","nodejs"],"created_at":"2024-11-08T05:34:51.211Z","updated_at":"2026-04-18T07:32:03.773Z","avatar_url":"https://github.com/christianmalek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-mysql-es6-query\nA helper function to build queries with ES6 template strings in [node-mysql](https://github.com/felixge/node-mysql).\n\n## How it works\n\n```js\n\"use strict\";\n\n//require the node mysql module\nlet mysql = require(\"mysql\");\n\n//require the es6 query file and pass the mysql.escape fn\nlet SQL = require( \"sql\"))(mysql.escape);\n\n//now you can write SQL in front of the ES6 Template Strings and they get escaped\n connection.query(SQL`SELECT username, password\n                      FROM account\n                      WHERE username = ${username}\n                      LIMIT 1`, (err, rows) =\u003e {\n\n //more code\n});\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianmalek%2Fnode-mysql-es6-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianmalek%2Fnode-mysql-es6-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianmalek%2Fnode-mysql-es6-query/lists"}