{"id":18782667,"url":"https://github.com/pinguet62/dbunit-sql","last_synced_at":"2026-01-30T04:42:53.214Z","repository":{"id":14048063,"uuid":"75743525","full_name":"pinguet62/dbunit-sql","owner":"pinguet62","description":"SQL dataset support for \"DbUnit\" and \"spring-test-dbunit\"","archived":false,"fork":false,"pushed_at":"2024-12-02T21:04:46.000Z","size":70,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-02T00:39:35.429Z","etag":null,"topics":["dbunit","spring-test","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinguet62.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-12-06T15:18:26.000Z","updated_at":"2021-11-22T13:29:06.000Z","dependencies_parsed_at":"2024-11-07T20:39:04.521Z","dependency_job_id":"733a3a2e-f2a4-4c0b-9ee2-a07495e7f40a","html_url":"https://github.com/pinguet62/dbunit-sql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pinguet62/dbunit-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguet62%2Fdbunit-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguet62%2Fdbunit-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguet62%2Fdbunit-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguet62%2Fdbunit-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinguet62","download_url":"https://codeload.github.com/pinguet62/dbunit-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguet62%2Fdbunit-sql/sbom","scorecard":{"id":734387,"data":{"date":"2025-08-11","repo":{"name":"github.com/pinguet62/dbunit-sql","commit":"836b63c07b5f5f2d6bb7f1129d1eedf97ab66880"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/pinguet62/dbunit-sql/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/pinguet62/dbunit-sql/CI.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pinguet62/dbunit-sql/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/pinguet62/dbunit-sql/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/pinguet62/dbunit-sql/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-24rp-q3w6-vc56","Warn: Project is vulnerable to: GHSA-562r-vg33-8x8h","Warn: Project is vulnerable to: GHSA-673j-qm5f-xpv8","Warn: Project is vulnerable to: GHSA-727h-hrw8-jg8q","Warn: Project is vulnerable to: GHSA-r38f-c4h4-hqq2","Warn: Project is vulnerable to: GHSA-v7wg-cpwc-24m4"],"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-22T15:19:22.977Z","repository_id":14048063,"created_at":"2025-08-22T15:19:22.977Z","updated_at":"2025-08-22T15:19:22.977Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28902835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["dbunit","spring-test","sql"],"created_at":"2024-11-07T20:36:46.176Z","updated_at":"2026-01-30T04:42:53.185Z","avatar_url":"https://github.com/pinguet62.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DbUnit SQL\n\n[![Maintained](https://img.shields.io/badge/maintained%3F-yes-brightgreen.svg?style=flat)](https://github.com/pinguet62)\n\n[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/pinguet62/dbunit-sql)](https://libraries.io/github/pinguet62/dbunit-sql)\n[![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/pinguet62/dbunit-sql)](https://snyk.io/test/github/pinguet62/dbunit-sql)\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f47a566d60f549c38b4ac4e72e06183d)](https://www.codacy.com/manual/pinguet62/dbunit-sql?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=pinguet62/dbunit-sql\u0026amp;utm_campaign=Badge_Grade)\n[![codecov](https://codecov.io/gh/pinguet62/dbunit-sql/branch/main/graph/badge.svg)](https://codecov.io/gh/pinguet62/dbunit-sql)\n\n[![GitHub Actions](https://github.com/pinguet62/dbunit-sql/workflows/CI/badge.svg?branch=main)](https://github.com/pinguet62/dbunit-sql/actions?query=workflow%3ACI+branch%3Amain)\n\n[![Maven Central](https://img.shields.io/maven-central/v/fr.pinguet62/dbunit-sql)](https://maven-badges.herokuapp.com/maven-central/fr.pinguet62/dbunit-sql)\n[![Javadocs](https://www.javadoc.io/badge/fr.pinguet62/dbunit-sql.svg)](https://www.javadoc.io/doc/fr.pinguet62/dbunit-sql)\n\nSQL dataset support for [DbUnit](http://dbunit.sourceforge.net) and [spring-test-dbunit](https://springtestdbunit.github.io/spring-test-dbunit) extension for *Spring test*.\n\n## Description\n\nAre equivalents:\n\n* SQL dataset:\n\t\n\t```sql\n\tinsert into profile (id, key) values ('1st', 'first');\n\tinsert into user (id, email, profile_id) values (1, 'first@domain.org', '1st');\n\t```\n\n* XML dataset:\n\t\n\t```xml\n\t\u003cdataset\u003e\n\t\t\u003cprofile id=\"1st\" key=\"first\"\u003e\n\t\t\u003cuser id=\"1\" email=\"first@domain.org\" profile_id=\"1st\"\u003e\n\t\u003c/dataset\u003e\n\t```\n\n## Dependencies\n\nTo use SQL support, add this dependency to your `pom.xml`:\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003efr.pinguet62\u003c/groupId\u003e\n\t\u003cartifactId\u003edbunit-sql\u003c/artifactId\u003e\n\t\u003cversion\u003e...\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIt's necessary to add **DbUnit** and/or **spring-test-dbunit** dependencies, because this project use `provided` *scope*.\n\n## Usage\n\n### DbUnit (native)\n\nFrom [Getting Started](http://dbunit.sourceforge.net/howto.html#Step_2:_Extend_a_DBTestCase_class):\n\n```java\n// [...]\nimport fr.pinguet62.dbunit.sql.ext.SqlDataSet;\n\npublic class SqlTest extends DBTestCase {\n\t// [...]\n\n\t@Override\n\tprotected IDataSet getDataSet() throws Exception {\n\t\treturn new SqlDataSet(getClass().getResourceAsStream(\"/dataset.sql\"));\n\t\t// return new SqlDataSet(getClass().getResourceAsStream(\"insert into profile (id, key) values ('1st', 'first');\"));\n\t}\n}\n```\n\n### spring-test-dbunit (extension)\n\n```java\n// [...]\nimport fr.pinguet62.dbunit.sql.springtest.SqlDataSetLoader;\n\n// [...]\n@TestExecutionListeners({ /*...,*/ TransactionDbUnitTestExecutionListener.class })\n@DbUnitConfiguration(dataSetLoader = SqlDataSetLoader.class)\n@DatabaseSetup(\"/dataset.sql\")\npublic class SqlTest {\n\t// [...]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinguet62%2Fdbunit-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinguet62%2Fdbunit-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinguet62%2Fdbunit-sql/lists"}