{"id":42531075,"url":"https://github.com/juninmd/jano-mysql","last_synced_at":"2026-01-28T16:16:07.605Z","repository":{"id":57279224,"uuid":"96232872","full_name":"juninmd/jano-mysql","owner":"juninmd","description":"It is a library that uses the mysql driver to keep code clean, simple, organized and with Promises.","archived":false,"fork":false,"pushed_at":"2017-10-11T18:23:24.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T22:22:03.639Z","etag":null,"topics":["mysql","nodejs"],"latest_commit_sha":null,"homepage":"","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/juninmd.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":"2017-07-04T15:40:23.000Z","updated_at":"2017-07-12T00:28:20.000Z","dependencies_parsed_at":"2022-09-18T13:02:13.230Z","dependency_job_id":null,"html_url":"https://github.com/juninmd/jano-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juninmd/jano-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fjano-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fjano-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fjano-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fjano-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juninmd","download_url":"https://codeload.github.com/juninmd/jano-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juninmd%2Fjano-mysql/sbom","scorecard":{"id":542770,"data":{"date":"2025-08-11","repo":{"name":"github.com/juninmd/jano-mysql","commit":"8f63f3c30626620fb362a05c829104944b47c483"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5f7m-mmpc-qhh4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T08:39:11.247Z","repository_id":57279224,"created_at":"2025-08-20T08:39:11.248Z","updated_at":"2025-08-20T08:39:11.248Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["mysql","nodejs"],"created_at":"2026-01-28T16:16:06.950Z","updated_at":"2026-01-28T16:16:07.600Z","avatar_url":"https://github.com/juninmd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jano-mysql\n\n[![NPM Version](https://img.shields.io/npm/v/jano-mysql.svg)](https://npmjs.org/package/jano-mysql)\n[![NPM Downloads](https://img.shields.io/npm/dm/jano-mysql.svg)](https://npmjs.org/package/jano-mysql)\n[![GitHub issues](https://img.shields.io/github/issues/juninmd/jano-mysql.svg)](https://github.com/juninmd/jano-mysql/issues)\n[![GitHub forks](https://img.shields.io/github/forks/juninmd/jano-mysql.svg)](https://github.com/juninmd/jano-mysql/network)\n[![Build Status](https://travis-ci.org/juninmd/jano-mysql.svg?branch=master)](https://travis-ci.org/juninmd/jano-mysql)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/juninmd/jano-mysql.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:\u0026url=%5Bobject%20Object%5D)\n\n[downloads-image]: \n[downloads-url]: \n\n## [EN]  \n\nIt is a library that uses the `mysql` driver to keep code clean, simple, organized and with Promises.\n\n## Requirements\n* [Node 8+](https://nodejs.org/en/)\n\n## Installation\n```bash\nnpm install jano-mysql --save\n````\nor\n```bash\nyarn add jano-mysql\n````\n## Examples of use\n* To load the library,\n  put the database settings inside the constructor.  \n\n```javascript\nconst mysql = require('jano-mysql')({\n    host: 'localhost',\n    user: 'root',\n    database: 'meubanco',\n    password: '',\n    port: 3306\n});\n```\n* Transaction  \nStarts an open `transaction`\n```javascript\nlet conexao = await mysql.beginTransaction();\n ```\n* Execute commands in the transaction\n ```javascript\nlet transacaoA = await mysql.executeTransaction(conexao, \"INSERT INTO venda SET ?\", { IDPRODUTO: 1, IDCLIENTE: 2 })\n\nlet transacaoB = await mysql.executeTransaction(conexao, `UPDATE estoque SET ? WHERE IDESTOQUE = ${IDESTOQUE}`, { VALOR: 2 })\n ```\n\n* Terminates a connection (non-mandatory parameter)\n\n```javascript\ntrue = commit \nfalse = rollback\n  ```\n```javascript\nlet conexaoEncerrada = await conexao.endConnection(true);\n ```\n* Free Query, enter whatever you want, the return will be in `.content`\n\n```javascript\nlet motivos = await mysql.executeString('SELECT * FROM motivo');\nconsole.log(motivos.content);\n```     \n* Insert/Update record\n\n```javascript\nlet insert = await mysql.executeObject(\"INSERT INTO motivo SET ?\", { DESCRICAO: 'teste' });\nconsole.log(insert);\n``` \n\n* Return records from a procedure\n```javascript\nlet procedure = await mysql.readProcedure(\"SP_MOTIVO\", [1]);\nconsole.log(procedure);\n``` \n\n\n## [PT-BR]  \n\nÉ uma biblioteca que utiliza o driver do `mysql` mantendo um código mais limpo, simples, organizado com Promises.\n\n## Requisitos\n* [Node 8+](https://nodejs.org/en/)\n## Instalação\n```bash\nnpm install jano-mysql --save\n````\nou\n```bash\nyarn add jano-mysql\n````\n## Exemplos de uso\n* Para carregar a biblioteca  \n   coloque no construtor as configurações do banco de dados.  \n\n```javascript\nconst mysql = require('jano-mysql')({\n    host: 'localhost',\n    user: 'root',\n    database: 'meubanco',\n    password: '',\n    port: 3306\n});\n```\n* Transação  \nInicia uma conexão aberta com `transaction` \n```javascript\nlet conexao = await mysql.beginTransaction();\n ```\n* Execute comandos na transação\n ```javascript\nlet transacaoA = await mysql.executeTransaction(conexao, \"INSERT INTO venda SET ?\", { IDPRODUTO: 1, IDCLIENTE: 2 })\n\nlet transacaoB = await mysql.executeTransaction(conexao, `UPDATE estoque SET ? WHERE IDESTOQUE = ${IDESTOQUE}`, { VALOR: 2 })\n ```\n\n* Encerra uma conexão (paramêtro não obrigatório) \n\n```javascript\ntrue = commit \nfalse = rollback\n  ```\n```javascript\nlet conexaoEncerrada = await conexao.endConnection(true);\n ```\n* Query livre, digite o que quiser, o retorno ficará em `.content`\n\n```javascript\nlet motivos = await mysql.executeString('SELECT * FROM motivo');\nconsole.log(motivos.content);\n```     \n* Inserir/Atualizar registro\n\n```javascript\nlet insert = await mysql.executeObject(\"INSERT INTO motivo SET ?\", { DESCRICAO: 'teste' });\nconsole.log(insert);\n``` \n\n* Retornar registros de uma procedure\n```javascript\nlet procedure = await mysql.readProcedure(\"SP_MOTIVO\", [1]);\nconsole.log(procedure);\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuninmd%2Fjano-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuninmd%2Fjano-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuninmd%2Fjano-mysql/lists"}