{"id":16176108,"url":"https://github.com/piotr-kalanski/dbtable2class","last_synced_at":"2026-04-17T08:31:19.793Z","repository":{"id":57722104,"uuid":"97155383","full_name":"piotr-kalanski/dbtable2class","owner":"piotr-kalanski","description":"Generate Scala case class based on database table metadata","archived":false,"fork":false,"pushed_at":"2018-04-19T07:50:59.000Z","size":50,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"development","last_synced_at":"2025-10-23T04:49:20.898Z","etag":null,"topics":["database","generator","reverse-engineering","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/piotr-kalanski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-13T18:54:54.000Z","updated_at":"2018-11-26T05:06:40.000Z","dependencies_parsed_at":"2022-08-29T23:00:34.017Z","dependency_job_id":null,"html_url":"https://github.com/piotr-kalanski/dbtable2class","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/piotr-kalanski/dbtable2class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fdbtable2class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fdbtable2class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fdbtable2class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fdbtable2class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotr-kalanski","download_url":"https://codeload.github.com/piotr-kalanski/dbtable2class/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotr-kalanski%2Fdbtable2class/sbom","scorecard":{"id":734717,"data":{"date":"2025-08-11","repo":{"name":"github.com/piotr-kalanski/dbtable2class","commit":"1df58b2acd3ebf581949196b14d6ba722e782959"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"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":"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":"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":"Code-Review","score":5,"reason":"Found 5/9 approved changesets -- score normalized to 5","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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"Branch-Protection","score":-1,"reason":"internal error: error during GetBranch(master): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T15:26:52.141Z","repository_id":57722104,"created_at":"2025-08-22T15:26:52.142Z","updated_at":"2025-08-22T15:26:52.142Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31921766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["database","generator","reverse-engineering","scala"],"created_at":"2024-10-10T04:47:43.299Z","updated_at":"2026-04-17T08:31:19.766Z","avatar_url":"https://github.com/piotr-kalanski.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbtable2class\nGenerate Scala case class based on database table metadata\n\n[![Build Status](https://api.travis-ci.org/piotr-kalanski/dbtable2class.png?branch=development)](https://api.travis-ci.org/piotr-kalanski/dbtable2class.png?branch=development)\n[![codecov.io](http://codecov.io/github/piotr-kalanski/dbtable2class/coverage.svg?branch=development)](http://codecov.io/github/piotr-kalanski/dbtable2class/coverage.svg?branch=development)\n[\u003cimg src=\"https://img.shields.io/maven-central/v/com.github.piotr-kalanski/dbtable2class_2.11.svg?label=latest%20release\"/\u003e](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22dbtable2class_2.11%22)\n[![Stories in Ready](https://badge.waffle.io/piotr-kalanski/dbtable2class.png?label=Ready)](https://waffle.io/piotr-kalanski/dbtable2class)\n[![License](http://img.shields.io/:license-Apache%202-red.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n\n# Table of contents\n\n- [Goals](#goals)\n- [Getting started](#getting-started)\n- [Examples](#examples)\n\n# Goals\n\n- Generate Scala case class based on database table metadata\n\n# Getting started\n\n## Include dependencies\n\n```scala\n\"com.github.piotr-kalanski\" % \"dbtable2class_2.11\" % \"0.3.1\"\n```\n\nor\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.piotr-kalanski\u003c/groupId\u003e\n    \u003cartifactId\u003edbtable2class_2.11\u003c/artifactId\u003e\n    \u003cversion\u003e0.3.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Examples\n\n## Generate from H2\n\nExample table in H2:\n```sql\nPEOPLE(\n   NAME VARCHAR,\n   AGE INT\n)\n```\n\n```scala\nval url = \"jdbc:h2:mem:test\"\nClassGenerator.generateClass(url, null, H2Dialect, TableClassMapping(database=\"TEST\", schema=\"PUBLIC\", table=\"PEOPLE\", packageName=\"com.datawizards.model\", className=\"Person\"))\n```\n\nResult:\n\n```scala\npackage com.datawizards.model\n\ncase class Person(\n  NAME: String,\n  AGE: Int\n)\n```\n\n## Generate output to directory\n\n```scala\nClassGenerator.generateClassesToDirectory(\n  \"target\", url, null, H2Dialect, Seq(\n    TableClassMapping(database=\"TEST\", schema=\"PUBLIC\", table=\"T11\", packageName=\"com.datawizards.model\", className=\"Person\"),\n    TableClassMapping(database=\"TEST\", schema=\"PUBLIC\", table=\"T22\", packageName=\"com.datawizards.model\", className=\"Book\")\n  )\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-kalanski%2Fdbtable2class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotr-kalanski%2Fdbtable2class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotr-kalanski%2Fdbtable2class/lists"}