{"id":20162350,"url":"https://github.com/mysqljs/named-placeholders","last_synced_at":"2025-04-10T00:35:47.854Z","repository":{"id":20215782,"uuid":"23487400","full_name":"mysqljs/named-placeholders","owner":"mysqljs","description":"PDO-style named to unnamed placeholders compiler","archived":false,"fork":false,"pushed_at":"2024-09-20T21:35:37.000Z","size":44,"stargazers_count":22,"open_issues_count":15,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T16:06:46.214Z","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/mysqljs.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-30T07:56:49.000Z","updated_at":"2024-11-26T09:28:47.000Z","dependencies_parsed_at":"2024-04-29T23:25:33.418Z","dependency_job_id":"1902b419-1edf-4698-ba60-00622324a6f0","html_url":"https://github.com/mysqljs/named-placeholders","commit_stats":{"total_commits":23,"total_committers":8,"mean_commits":2.875,"dds":0.6521739130434783,"last_synced_commit":"8b78fcf6142355a2bbe6835a9e49caa9d1550ef7"},"previous_names":["sidorares/named-placeholders"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysqljs%2Fnamed-placeholders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysqljs%2Fnamed-placeholders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysqljs%2Fnamed-placeholders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysqljs%2Fnamed-placeholders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysqljs","download_url":"https://codeload.github.com/mysqljs/named-placeholders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137838,"owners_count":21053770,"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":[],"created_at":"2024-11-14T00:24:32.698Z","updated_at":"2025-04-10T00:35:47.825Z","avatar_url":"https://github.com/mysqljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/named-placeholders.png?downloads=true\u0026stars=true)](https://nodei.co/npm/named-placeholders/)\n\n[![CI](https://github.com/mysqljs/named-placeholders/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mysqljs/named-placeholders/actions/workflows/ci.yml)\n\n# named-placeholders\n\ncompiles \"select foo where foo.id = :bar and foo.baz \u003c :baz\" into \"select foo where foo.id = ? and foo.baz \u003c ?\" + [\"bar\", \"baz\"]\n\n## usage\n\n```sh\nnpm install named-placeholders\n```\n\nsee [this mysql2 discussion](https://github.com/sidorares/node-mysql2/issues/117)\n\n```js\nvar mysql = require('mysql');\nvar toUnnamed = require('named-placeholders')();\n\nvar q = toUnnamed('select 1+:test', { test: 123});\nmysql.createConnection().query(q[0], q[1]);\n```\n\n## credits\n\nparser is based on @mscdex code of his excellent [node-mariasql](https://github.com/mscdex/node-mariasql) library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysqljs%2Fnamed-placeholders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysqljs%2Fnamed-placeholders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysqljs%2Fnamed-placeholders/lists"}