{"id":15003381,"url":"https://github.com/pcnate/exec-mssql","last_synced_at":"2026-01-28T02:05:42.629Z","repository":{"id":67694140,"uuid":"145038851","full_name":"pcnate/exec-mssql","owner":"pcnate","description":"Execute your ms.sql files which contain multiple sql statements","archived":false,"fork":false,"pushed_at":"2018-08-16T21:09:17.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T23:34:09.640Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcnate.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-16T21:02:41.000Z","updated_at":"2018-08-16T21:09:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e516c81e-dea4-4af5-8510-040996c2b5bd","html_url":"https://github.com/pcnate/exec-mssql","commit_stats":{"total_commits":26,"total_committers":5,"mean_commits":5.2,"dds":0.5384615384615384,"last_synced_commit":"d3863da73fc6f5af5f47c456b37ee3ad798f395a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pcnate/exec-mssql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fexec-mssql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fexec-mssql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fexec-mssql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fexec-mssql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcnate","download_url":"https://codeload.github.com/pcnate/exec-mssql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcnate%2Fexec-mssql/sbom","scorecard":{"id":725238,"data":{"date":"2025-08-11","repo":{"name":"github.com/pcnate/exec-mssql","commit":"d3863da73fc6f5af5f47c456b37ee3ad798f395a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"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":"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":"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":"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":"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/27 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":"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":"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":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq"],"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-22T12:35:18.174Z","repository_id":67694140,"created_at":"2025-08-22T12:35:18.174Z","updated_at":"2025-08-22T12:35:18.174Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28833482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"online","status_checked_at":"2026-01-28T02:00:06.943Z","response_time":57,"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":[],"created_at":"2024-09-24T18:58:13.949Z","updated_at":"2026-01-28T02:05:42.615Z","avatar_url":"https://github.com/pcnate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"exec-mssql\n=======\n\nExecute your ms.sql files which contain multiple sql statements.\\\n`GO` deliminators in files are replaced at runtime by `;`\n\n## Usage\n\n### As a CLI tool\n\n1. Make sure you have `exec-mssql` installed globally\n\t```sh\n\tnpm install -g exec-mssql\n\t```\n\n2. Configure your db access for the first time. Usage: `exec-mssql [-e] -c \"server\" \"database\" \"user\" \"password\"`.\n\t```sh\n\texec_mssql -c \"localhost\" \"database\" \"root\" \"root\"\n\t```\n\n- Execute a bunch of sql statements\n\t```sh\n\texec_mssql \"use db_cam; delete from admin;\"\n\t```\n\n- Execute a `.sql` file\n\t```sh\n\texec_mssql -f ./db.sql\n\t```\n\n### As a Node dependency\n\n1. Make sure you have `exec-mssql` installed locally\n\t```sh\n\tnpm install --save exec-mssql\n\t```\n\n2. Require and use\n\t```js\n    var exec_mssql = require('exec-mssql');\n    const dbConfig = {\n      host:     'localhost',\n      database: 'myDatabase',\n      user:     'root',\n      password: 'root',\n      options:  {\n        encrypt: true\n      }\n    };\n    const sql = 'use db_cam;';\n    const sqlFile = __dirname + '/db.sql';\n\n    exec_mssql.config( dbConfig ).then( () =\u003e {\n      exec_mssql.exec( sql ).then( results =\u003e {\n\n        exec_mssql.execFile( sqlFile ).then( data =\u003e {\n          if (data.err) throw data.err;\n          console.log( results, data.results );\n\n          exec_mssql.end();\n          process.exit(0);\n        }).catch( error =\u003e {\n          console.error( 'error executing SQL file', error );\n          exec_mssql.end();\n          process.exit(0);\n        })\n      \n      }).catch( error =\u003e {\n        console.error( 'error executing SQL block', error );\n        exec_mssql.end();\n        process.exit(0);\n      })\n    })\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcnate%2Fexec-mssql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcnate%2Fexec-mssql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcnate%2Fexec-mssql/lists"}